corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmke...@apache.org
Subject [33/92] [abbrv] [partial] incubator-corinthia git commit: Add editing code from UX Write
Date Wed, 17 Dec 2014 13:28:43 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop04-input.html b/Editor/tests/cursor/enterPressed-list-nop04-input.html
new file mode 100644
index 0000000..925e56e
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop04-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>aaa[]</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop05-expected.html b/Editor/tests/cursor/enterPressed-list-nop05-expected.html
new file mode 100644
index 0000000..443043c
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop05-expected.html
@@ -0,0 +1,9 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li/>
+      <li>[]bbb</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop05-input.html b/Editor/tests/cursor/enterPressed-list-nop05-input.html
new file mode 100644
index 0000000..c023929
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop05-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>[]bbb</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop06-expected.html b/Editor/tests/cursor/enterPressed-list-nop06-expected.html
new file mode 100644
index 0000000..bb5afc2
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop06-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li/>
+      <li/>
+      <li/>
+      <li/>
+      <li>[]bbb</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop06-input.html b/Editor/tests/cursor/enterPressed-list-nop06-input.html
new file mode 100644
index 0000000..ebe7b71
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop06-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>[]bbb</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop07-expected.html b/Editor/tests/cursor/enterPressed-list-nop07-expected.html
new file mode 100644
index 0000000..d7991f1
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop07-expected.html
@@ -0,0 +1,9 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>aaa</li>
+      <li>[]bbb</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop07-input.html b/Editor/tests/cursor/enterPressed-list-nop07-input.html
new file mode 100644
index 0000000..42eef60
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop07-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>aaa[]bbb</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop08-expected.html b/Editor/tests/cursor/enterPressed-list-nop08-expected.html
new file mode 100644
index 0000000..dfea136
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop08-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>aaa</li>
+      <li/>
+      <li/>
+      <li/>
+      <li>[]bbb</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list-nop08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list-nop08-input.html b/Editor/tests/cursor/enterPressed-list-nop08-input.html
new file mode 100644
index 0000000..d2f2cae
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list-nop08-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>aaa[]bbb</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list01-expected.html b/Editor/tests/cursor/enterPressed-list01-expected.html
new file mode 100644
index 0000000..da7d28e
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list01-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>T</p></li>
+      <li><p>[]wo</p></li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list01-input.html b/Editor/tests/cursor/enterPressed-list01-input.html
new file mode 100644
index 0000000..cc0d9dc
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list01-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p>T[]wo</p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list02-expected.html b/Editor/tests/cursor/enterPressed-list02-expected.html
new file mode 100644
index 0000000..d387e6f
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list02-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p><br/></p></li>
+      <li><p>[]Two</p></li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list02-input.html b/Editor/tests/cursor/enterPressed-list02-input.html
new file mode 100644
index 0000000..f500454
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list02-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p>[]Two</p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list03-expected.html b/Editor/tests/cursor/enterPressed-list03-expected.html
new file mode 100644
index 0000000..486502d
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list03-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>Two</p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list03-input.html b/Editor/tests/cursor/enterPressed-list03-input.html
new file mode 100644
index 0000000..01fa703
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list03-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p>Two[]</p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list04-expected.html b/Editor/tests/cursor/enterPressed-list04-expected.html
new file mode 100644
index 0000000..5d15822
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list04-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>T</li>
+      <li>[]wo</li>
+      <li>Three</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list04-input.html b/Editor/tests/cursor/enterPressed-list04-input.html
new file mode 100644
index 0000000..e9f08c6
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list04-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>T[]wo</li>
+  <li>Three</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list05-expected.html b/Editor/tests/cursor/enterPressed-list05-expected.html
new file mode 100644
index 0000000..234f61a
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list05-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li/>
+      <li>[]Two</li>
+      <li>Three</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list05-input.html b/Editor/tests/cursor/enterPressed-list05-input.html
new file mode 100644
index 0000000..dad996d
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list05-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>[]Two</li>
+  <li>Three</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list06-expected.html b/Editor/tests/cursor/enterPressed-list06-expected.html
new file mode 100644
index 0000000..36bdf73
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list06-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>[]</li>
+      <li>Three</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list06-input.html b/Editor/tests/cursor/enterPressed-list06-input.html
new file mode 100644
index 0000000..00d7b87
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list06-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>Two[]</li>
+  <li>Three</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list07-expected.html b/Editor/tests/cursor/enterPressed-list07-expected.html
new file mode 100644
index 0000000..0a3f942
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list07-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>[]</li>
+      <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list07-input.html b/Editor/tests/cursor/enterPressed-list07-input.html
new file mode 100644
index 0000000..2defb77
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list07-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  []
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list08-expected.html b/Editor/tests/cursor/enterPressed-list08-expected.html
new file mode 100644
index 0000000..36bdf73
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list08-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>[]</li>
+      <li>Three</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list08-input.html b/Editor/tests/cursor/enterPressed-list08-input.html
new file mode 100644
index 0000000..a9359a3
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list08-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  []
+  <li>Three</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list09-expected.html b/Editor/tests/cursor/enterPressed-list09-expected.html
new file mode 100644
index 0000000..335564c
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list09-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+      <li>[]</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list09-input.html b/Editor/tests/cursor/enterPressed-list09-input.html
new file mode 100644
index 0000000..a33fff8
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list09-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+  []
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list10-expected.html b/Editor/tests/cursor/enterPressed-list10-expected.html
new file mode 100644
index 0000000..7b314eb
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list10-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li/>
+      <li>
+        []*
+        <p>Two</p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list10-input.html b/Editor/tests/cursor/enterPressed-list10-input.html
new file mode 100644
index 0000000..082a6fd
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list10-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>[]<p>Two</p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list11-expected.html b/Editor/tests/cursor/enterPressed-list11-expected.html
new file mode 100644
index 0000000..9b5c662
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list11-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>Two</p></li>
+      <li>[]</li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list11-input.html b/Editor/tests/cursor/enterPressed-list11-input.html
new file mode 100644
index 0000000..569d01f
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list11-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p>Two</p>[]</li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list12-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list12-expected.html b/Editor/tests/cursor/enterPressed-list12-expected.html
new file mode 100644
index 0000000..64a7f61
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list12-expected.html
@@ -0,0 +1,15 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li/>
+      <li>
+        []
+        <p>Two - first</p>
+        <p>Two - second</p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list12-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list12-input.html b/Editor/tests/cursor/enterPressed-list12-input.html
new file mode 100644
index 0000000..98b93db
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list12-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    []<p>Two - first</p>
+    <p>Two - second</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list13-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list13-expected.html b/Editor/tests/cursor/enterPressed-list13-expected.html
new file mode 100644
index 0000000..26d108a
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list13-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p><br/></p></li>
+      <li>
+        <p>[]Two - first</p>
+        <p>Two - second</p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list13-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list13-input.html b/Editor/tests/cursor/enterPressed-list13-input.html
new file mode 100644
index 0000000..cd746a0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list13-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>[]Two - first</p>
+    <p>Two - second</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list14-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list14-expected.html b/Editor/tests/cursor/enterPressed-list14-expected.html
new file mode 100644
index 0000000..88808b7
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list14-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>Two - f</p></li>
+      <li>
+        <p>[]irst</p>
+        <p>Two - second</p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list14-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list14-input.html b/Editor/tests/cursor/enterPressed-list14-input.html
new file mode 100644
index 0000000..71907e0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list14-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>Two - f[]irst</p>
+    <p>Two - second</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list15-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list15-expected.html b/Editor/tests/cursor/enterPressed-list15-expected.html
new file mode 100644
index 0000000..36072b5
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list15-expected.html
@@ -0,0 +1,17 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>Two - first</p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+        <p>Two - second</p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list15-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list15-input.html b/Editor/tests/cursor/enterPressed-list15-input.html
new file mode 100644
index 0000000..6607ab0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list15-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>Two - first[]</p>
+    <p>Two - second</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list16-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list16-expected.html b/Editor/tests/cursor/enterPressed-list16-expected.html
new file mode 100644
index 0000000..3890e58
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list16-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>Two - first</p></li>
+      <li>
+        []
+        <p>Two - second</p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list16-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list16-input.html b/Editor/tests/cursor/enterPressed-list16-input.html
new file mode 100644
index 0000000..a96a4f2
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list16-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>Two - first</p>
+    []
+    <p>Two - second</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list17-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list17-expected.html b/Editor/tests/cursor/enterPressed-list17-expected.html
new file mode 100644
index 0000000..690c725
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list17-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li>
+        <p>Two - first</p>
+        <p/>
+      </li>
+      <li><p>[]Two - second</p></li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list17-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list17-input.html b/Editor/tests/cursor/enterPressed-list17-input.html
new file mode 100644
index 0000000..90036e0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list17-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>Two - first</p>
+    <p>[]Two - second</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list18-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list18-expected.html b/Editor/tests/cursor/enterPressed-list18-expected.html
new file mode 100644
index 0000000..432176a
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list18-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li>
+        <p>Two - first</p>
+        <p>Two - s</p>
+      </li>
+      <li><p>[]econd</p></li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list18-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list18-input.html b/Editor/tests/cursor/enterPressed-list18-input.html
new file mode 100644
index 0000000..ad71760
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list18-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>Two - first</p>
+    <p>Two - s[]econd</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list19-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list19-expected.html b/Editor/tests/cursor/enterPressed-list19-expected.html
new file mode 100644
index 0000000..41abbf9
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list19-expected.html
@@ -0,0 +1,19 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li>
+        <p>Two - first</p>
+        <p>Two - second</p>
+      </li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list19-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list19-input.html b/Editor/tests/cursor/enterPressed-list19-input.html
new file mode 100644
index 0000000..a971e2b
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list19-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>Two - first</p>
+    <p>Two - second[]</p>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list20-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list20-expected.html b/Editor/tests/cursor/enterPressed-list20-expected.html
new file mode 100644
index 0000000..b2593c3
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list20-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li>
+        <p>Two - first</p>
+        <p>Two - second</p>
+      </li>
+      <li>[]</li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list20-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list20-input.html b/Editor/tests/cursor/enterPressed-list20-input.html
new file mode 100644
index 0000000..ad7656b
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list20-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li>
+    <p>Two - first</p>
+    <p>Two - second</p>
+    []
+  </li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list21-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list21-expected.html b/Editor/tests/cursor/enterPressed-list21-expected.html
new file mode 100644
index 0000000..13e5ca9
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list21-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p><b><i><u>T</u></i></b></p></li>
+      <li><p><b><i><u>[]wo</u></i></b></p></li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list21-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list21-input.html b/Editor/tests/cursor/enterPressed-list21-input.html
new file mode 100644
index 0000000..ccf3230
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list21-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p><b><i><u>T[]wo</u></i></b></p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list22-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list22-expected.html b/Editor/tests/cursor/enterPressed-list22-expected.html
new file mode 100644
index 0000000..ca68248
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list22-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li>
+        <p>
+          <b><i><u/></i></b>
+          <br/>
+        </p>
+      </li>
+      <li><p><b><i><u>[]Two</u></i></b></p></li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list22-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list22-input.html b/Editor/tests/cursor/enterPressed-list22-input.html
new file mode 100644
index 0000000..57fb405
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list22-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p><b><i><u>[]Two</u></i></b></p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list23-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list23-expected.html b/Editor/tests/cursor/enterPressed-list23-expected.html
new file mode 100644
index 0000000..1e12dc1
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list23-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p><b><i><u>Two</u></i></b></p></li>
+      <li>
+        <p>
+          <b><i><u>[]</u></i></b>
+          <br/>
+        </p>
+      </li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list23-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list23-input.html b/Editor/tests/cursor/enterPressed-list23-input.html
new file mode 100644
index 0000000..c0a2d15
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list23-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p><b><i><u>Two[]</u></i></b></p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list24-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list24-expected.html b/Editor/tests/cursor/enterPressed-list24-expected.html
new file mode 100644
index 0000000..7d783b8
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list24-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+      </li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list24-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list24-input.html b/Editor/tests/cursor/enterPressed-list24-input.html
new file mode 100644
index 0000000..d6fdbad
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list24-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>[]</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list25-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list25-expected.html b/Editor/tests/cursor/enterPressed-list25-expected.html
new file mode 100644
index 0000000..562a7fd
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list25-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p><b><i><u>X[]</u></i></b></p></li>
+      <li><p><b><i><u>Two</u></i></b></p></li>
+      <li><p>Three</p></li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list25-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list25-input.html b/Editor/tests/cursor/enterPressed-list25-input.html
new file mode 100644
index 0000000..cee3f32
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list25-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    var range = Selection_get();
+    Range_trackWhileExecuting(range,showEmptyTextNodes);
+    var u = document.getElementsByTagName("U")[0];
+    Selection_set(u,0,u,0);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p><b><i><u>[]Two</u></i></b></p></li>
+  <li><p>Three</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list26-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list26-expected.html b/Editor/tests/cursor/enterPressed-list26-expected.html
new file mode 100644
index 0000000..55f4d4b
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list26-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p><br/></p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+      </li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list26-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list26-input.html b/Editor/tests/cursor/enterPressed-list26-input.html
new file mode 100644
index 0000000..38925e0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list26-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>[]<br></p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list27-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list27-expected.html b/Editor/tests/cursor/enterPressed-list27-expected.html
new file mode 100644
index 0000000..27ad04d
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list27-expected.html
@@ -0,0 +1,17 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+      </li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list27-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list27-input.html b/Editor/tests/cursor/enterPressed-list27-input.html
new file mode 100644
index 0000000..a13066e
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list27-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>[]<br></p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list28-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list28-expected.html b/Editor/tests/cursor/enterPressed-list28-expected.html
new file mode 100644
index 0000000..27ad04d
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list28-expected.html
@@ -0,0 +1,17 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li><p><br/></p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+      </li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list28-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list28-input.html b/Editor/tests/cursor/enterPressed-list28-input.html
new file mode 100644
index 0000000..99986cf
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list28-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>[]</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list29-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list29-expected.html b/Editor/tests/cursor/enterPressed-list29-expected.html
new file mode 100644
index 0000000..b4c7d8e
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list29-expected.html
@@ -0,0 +1,19 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>
+        <p>One</p>
+        <ul>
+          <li><p>Two</p></li>
+          <li>
+            <p>
+              []
+              <br/>
+            </p>
+          </li>
+        </ul>
+      </li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list29-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list29-input.html b/Editor/tests/cursor/enterPressed-list29-input.html
new file mode 100644
index 0000000..4269103
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list29-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <ul>
+    <li>
+      <p>One</p>
+      <ul>
+        <li>
+          <p>Two[]</p>
+        </li>
+      </ul>
+    </li>
+  </ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list30-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list30-expected.html b/Editor/tests/cursor/enterPressed-list30-expected.html
new file mode 100644
index 0000000..7264aef
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list30-expected.html
@@ -0,0 +1,24 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>
+        <p>One</p>
+        <ul>
+          <li>
+            <p>Two</p>
+            <ul>
+              <li><p>Three</p></li>
+              <li>
+                <p>
+                  []
+                  <br/>
+                </p>
+              </li>
+            </ul>
+          </li>
+        </ul>
+      </li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list30-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list30-input.html b/Editor/tests/cursor/enterPressed-list30-input.html
new file mode 100644
index 0000000..8c0b5ef
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list30-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <ul>
+    <li>
+      <p>One</p>
+      <ul>
+        <li>
+          <p>Two</p>
+          <ul>
+            <li>
+              <p>Three[]</p>
+            </li>
+          </ul>
+        </li>
+      </ul>
+    </li>
+  </ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list31-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list31-expected.html b/Editor/tests/cursor/enterPressed-list31-expected.html
new file mode 100644
index 0000000..6a8264a
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list31-expected.html
@@ -0,0 +1,15 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+        <ul><li><p>Two</p></li></ul>
+      </li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list31-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list31-input.html b/Editor/tests/cursor/enterPressed-list31-input.html
new file mode 100644
index 0000000..dc4d87b
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list31-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <ul>
+    <li>
+      <p>One[]</p>
+      <ul>
+        <li>
+          <p>Two</p>
+        </li>
+      </ul>
+    </li>
+  </ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list32-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list32-expected.html b/Editor/tests/cursor/enterPressed-list32-expected.html
new file mode 100644
index 0000000..8d27a97
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list32-expected.html
@@ -0,0 +1,20 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>
+        <p>One</p>
+        <ul>
+          <li><p>Two</p></li>
+          <li>
+            <p>
+              []
+              <br/>
+            </p>
+            <ul><li><p>Three</p></li></ul>
+          </li>
+        </ul>
+      </li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list32-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list32-input.html b/Editor/tests/cursor/enterPressed-list32-input.html
new file mode 100644
index 0000000..24457ee
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list32-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <ul>
+    <li>
+      <p>One</p>
+      <ul>
+        <li>
+          <p>Two[]</p>
+          <ul>
+            <li>
+              <p>Three</p>
+            </li>
+          </ul>
+        </li>
+      </ul>
+    </li>
+  </ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list33-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list33-expected.html b/Editor/tests/cursor/enterPressed-list33-expected.html
new file mode 100644
index 0000000..6755de5
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list33-expected.html
@@ -0,0 +1,20 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li>
+        <p>
+          []
+          <br/>
+        </p>
+        <ul>
+          <li>
+            <p>Two</p>
+            <ul><li><p>Three</p></li></ul>
+          </li>
+        </ul>
+      </li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-list33-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-list33-input.html b/Editor/tests/cursor/enterPressed-list33-input.html
new file mode 100644
index 0000000..1236696
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-list33-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <ul>
+    <li>
+      <p>One[]</p>
+      <ul>
+        <li>
+          <p>Two</p>
+          <ul>
+            <li>
+              <p>Three</p>
+            </li>
+          </ul>
+        </li>
+      </ul>
+    </li>
+  </ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next01-expected.html b/Editor/tests/cursor/enterPressed-next01-expected.html
new file mode 100644
index 0000000..f2aa188
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next01-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <h1 id="item1">Sample t</h1>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next01-input.html b/Editor/tests/cursor/enterPressed-next01-input.html
new file mode 100644
index 0000000..28a598b
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next01-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1 id="item1">Sample t[]ext</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next02-expected.html b/Editor/tests/cursor/enterPressed-next02-expected.html
new file mode 100644
index 0000000..db7dc66
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next02-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <h1 id="item1">Sample t</h1>
+    <p class="Foo">[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next02-input.html b/Editor/tests/cursor/enterPressed-next02-input.html
new file mode 100644
index 0000000..6f4ef8d
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next02-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setParagraphClass("Foo");
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1 id="item1">Sample t[]ext</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next03-expected.html b/Editor/tests/cursor/enterPressed-next03-expected.html
new file mode 100644
index 0000000..1bac7f3
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next03-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next03-input.html b/Editor/tests/cursor/enterPressed-next03-input.html
new file mode 100644
index 0000000..bdfb739
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next03-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next04-expected.html b/Editor/tests/cursor/enterPressed-next04-expected.html
new file mode 100644
index 0000000..1bac7f3
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next04-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next04-input.html b/Editor/tests/cursor/enterPressed-next04-input.html
new file mode 100644
index 0000000..3c16599
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next04-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setParagraphClass("Foo");
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05a-expected.html b/Editor/tests/cursor/enterPressed-next05a-expected.html
new file mode 100644
index 0000000..e3d6d90
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05a-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05a-input.html b/Editor/tests/cursor/enterPressed-next05a-input.html
new file mode 100644
index 0000000..d78152a
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05a-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    // p.Foo is not valid JSON and should generate a parser error, and be ignored
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "p.Foo" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05b-expected.html b/Editor/tests/cursor/enterPressed-next05b-expected.html
new file mode 100644
index 0000000..e3d6d90
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05b-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05b-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05b-input.html b/Editor/tests/cursor/enterPressed-next05b-input.html
new file mode 100644
index 0000000..62167e7
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05b-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    // 123 is valid JSON but is not a string, and should be ignored
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "123" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05c-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05c-expected.html b/Editor/tests/cursor/enterPressed-next05c-expected.html
new file mode 100644
index 0000000..e3d6d90
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05c-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05c-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05c-input.html b/Editor/tests/cursor/enterPressed-next05c-input.html
new file mode 100644
index 0000000..b7a0aef
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05c-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    // { a: 'x' } is valid JSON but is not a string, and should be ignored
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "{ \"a\": \"x\" }" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05d-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05d-expected.html b/Editor/tests/cursor/enterPressed-next05d-expected.html
new file mode 100644
index 0000000..e3d6d90
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05d-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05d-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05d-input.html b/Editor/tests/cursor/enterPressed-next05d-input.html
new file mode 100644
index 0000000..b54a20f
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05d-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    // true is valid JSON string but is not a string, and should be ignored
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "true" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05e-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05e-expected.html b/Editor/tests/cursor/enterPressed-next05e-expected.html
new file mode 100644
index 0000000..e3d6d90
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05e-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next05e-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next05e-input.html b/Editor/tests/cursor/enterPressed-next05e-input.html
new file mode 100644
index 0000000..be17c7d
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next05e-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    // null is valid JSON but is not a string, and should be ignored
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "null" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next06-expected.html b/Editor/tests/cursor/enterPressed-next06-expected.html
new file mode 100644
index 0000000..a75205f
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next06-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <p class="Foo">[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next06-input.html b/Editor/tests/cursor/enterPressed-next06-input.html
new file mode 100644
index 0000000..dcefcb9
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next06-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "\"p.Foo\"" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next07-expected.html b/Editor/tests/cursor/enterPressed-next07-expected.html
new file mode 100644
index 0000000..7ab9fa8
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next07-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <blockquote>[]ext</blockquote>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next07-input.html b/Editor/tests/cursor/enterPressed-next07-input.html
new file mode 100644
index 0000000..ea6cacf
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next07-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "\"blockquote\"" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next08-expected.html b/Editor/tests/cursor/enterPressed-next08-expected.html
new file mode 100644
index 0000000..8303868
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next08-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <p id="item1">Sample t</p>
+    <blockquote class="Foo">[]ext</blockquote>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next08-input.html b/Editor/tests/cursor/enterPressed-next08-input.html
new file mode 100644
index 0000000..52832d9
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next08-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setCSSText(" ",{ "p": { "-uxwrite-next": "\"blockquote.Foo\"" } });
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="item1">Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next09-expected.html b/Editor/tests/cursor/enterPressed-next09-expected.html
new file mode 100644
index 0000000..267b8e2
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next09-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <blockquote id="item1">Sample t</blockquote>
+    <blockquote>[]ext</blockquote>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-next09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-next09-input.html b/Editor/tests/cursor/enterPressed-next09-input.html
new file mode 100644
index 0000000..b81b444
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-next09-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<blockquote id="item1">Sample t[]ext</blockquote>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass01-expected.html b/Editor/tests/cursor/enterPressed-paragraphClass01-expected.html
new file mode 100644
index 0000000..8527bd7
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass01-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample t</h1>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass01-input.html b/Editor/tests/cursor/enterPressed-paragraphClass01-input.html
new file mode 100644
index 0000000..9f63245
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass01-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1>Sample t[]ext</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass02-expected.html b/Editor/tests/cursor/enterPressed-paragraphClass02-expected.html
new file mode 100644
index 0000000..79f6e29
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass02-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample text</h1>
+    <p>
+      []
+      <br/>
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass02-input.html b/Editor/tests/cursor/enterPressed-paragraphClass02-input.html
new file mode 100644
index 0000000..02ee52d
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass02-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1>Sample text[]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass03-expected.html b/Editor/tests/cursor/enterPressed-paragraphClass03-expected.html
new file mode 100644
index 0000000..c1725bb
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass03-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      []
+      <br/>
+    </p>
+    <h1>Sample text</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass03-input.html b/Editor/tests/cursor/enterPressed-paragraphClass03-input.html
new file mode 100644
index 0000000..89935a1
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass03-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1>[]Sample text</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass04-expected.html b/Editor/tests/cursor/enterPressed-paragraphClass04-expected.html
new file mode 100644
index 0000000..3b7c93f
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass04-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample t</h1>
+    <p class="Normal">[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass04-input.html b/Editor/tests/cursor/enterPressed-paragraphClass04-input.html
new file mode 100644
index 0000000..c16fcc0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass04-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setParagraphClass("Normal");
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1>Sample t[]ext</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass05-expected.html b/Editor/tests/cursor/enterPressed-paragraphClass05-expected.html
new file mode 100644
index 0000000..c61c647
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass05-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample text</h1>
+    <p class="Normal">
+      []
+      <br/>
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass05-input.html b/Editor/tests/cursor/enterPressed-paragraphClass05-input.html
new file mode 100644
index 0000000..9a9a9ab
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass05-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setParagraphClass("Normal");
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1>Sample text[]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass06-expected.html b/Editor/tests/cursor/enterPressed-paragraphClass06-expected.html
new file mode 100644
index 0000000..b45256a
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass06-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p class="Normal">
+      []
+      <br/>
+    </p>
+    <h1>Sample text</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-paragraphClass06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-paragraphClass06-input.html b/Editor/tests/cursor/enterPressed-paragraphClass06-input.html
new file mode 100644
index 0000000..a775a28
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-paragraphClass06-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Styles_setParagraphClass("Normal");
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1>[]Sample text</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection01-expected.html b/Editor/tests/cursor/enterPressed-selection01-expected.html
new file mode 100644
index 0000000..da91fb6
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection01-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>Sam</p>
+    <p>[]xt</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection01-input.html b/Editor/tests/cursor/enterPressed-selection01-input.html
new file mode 100644
index 0000000..2764de2
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sam[ple te]xt</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection02-expected.html b/Editor/tests/cursor/enterPressed-selection02-expected.html
new file mode 100644
index 0000000..6183f00
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection02-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p><br/></p>
+    <p>
+      []
+      <br/>
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection02-input.html b/Editor/tests/cursor/enterPressed-selection02-input.html
new file mode 100644
index 0000000..411efea
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection02-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[Sample text]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection03-expected.html b/Editor/tests/cursor/enterPressed-selection03-expected.html
new file mode 100644
index 0000000..085ca35
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection03-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>Sam</p>
+    <p>[]nt</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection03-input.html b/Editor/tests/cursor/enterPressed-selection03-input.html
new file mode 100644
index 0000000..51fde91
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection03-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sam[ple text</p>
+<p>More conte]nt</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection04-expected.html b/Editor/tests/cursor/enterPressed-selection04-expected.html
new file mode 100644
index 0000000..6183f00
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection04-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p><br/></p>
+    <p>
+      []
+      <br/>
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed-selection04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed-selection04-input.html b/Editor/tests/cursor/enterPressed-selection04-input.html
new file mode 100644
index 0000000..fb9bdd6
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed-selection04-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[Sample text</p>
+<p>More content]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed01-expected.html b/Editor/tests/cursor/enterPressed01-expected.html
new file mode 100644
index 0000000..58c04c0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed01-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed01-input.html b/Editor/tests/cursor/enterPressed01-input.html
new file mode 100644
index 0000000..6d9b8b9
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed01-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sample t[]ext</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed02-expected.html b/Editor/tests/cursor/enterPressed02-expected.html
new file mode 100644
index 0000000..58c04c0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed02-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>Sample t</p>
+    <p>[]ext</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed02-input.html b/Editor/tests/cursor/enterPressed02-input.html
new file mode 100644
index 0000000..6e7dcc8
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed02-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+Sample t[]ext
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed03-expected.html b/Editor/tests/cursor/enterPressed03-expected.html
new file mode 100644
index 0000000..8555b1f
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed03-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <div>Sample t</div>
+    <div>[]ext</div>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed03-input.html b/Editor/tests/cursor/enterPressed03-input.html
new file mode 100644
index 0000000..a3aa1e3
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed03-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<div>Sample t[]ext</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed04-expected.html b/Editor/tests/cursor/enterPressed04-expected.html
new file mode 100644
index 0000000..0b17320
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed04-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p><br/></p>
+    <p>[]Sample text</p>
+  </body>
+</html>


Mime
View raw message