corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmke...@apache.org
Subject [32/92] [abbrv] [partial] incubator-corinthia git commit: Add editing code from UX Write
Date Wed, 17 Dec 2014 13:28:42 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed04-input.html b/Editor/tests/cursor/enterPressed04-input.html
new file mode 100644
index 0000000..c22179e
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed04-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Selection_preserveWhileExecuting(showEmptyTextNodes);
+    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/enterPressed05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed05-expected.html b/Editor/tests/cursor/enterPressed05-expected.html
new file mode 100644
index 0000000..ee8db9e
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed05-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>Sample text</p>
+    <p>
+      []
+      <br/>
+    </p>
+  </body>
+</html>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed14-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed14-expected.html b/Editor/tests/cursor/enterPressed14-expected.html
new file mode 100644
index 0000000..f2b6255
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed14-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>Sam</p>
+    <p>
+      []ple
+      <b><i><u>text</u></i></b>
+    </p>
+  </body>
+</html>

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed16-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed16-expected.html b/Editor/tests/cursor/enterPressed16-expected.html
new file mode 100644
index 0000000..0a2583f
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed16-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      <b><i><u>Sample</u></i></b>
+      te
+    </p>
+    <p>[]xt</p>
+  </body>
+</html>

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed18-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed18-expected.html b/Editor/tests/cursor/enterPressed18-expected.html
new file mode 100644
index 0000000..8e26da0
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed18-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      <b>
+        <i>
+          <u>Sample</u>
+          te
+        </i>
+      </b>
+    </p>
+    <p><b><i>[]xt</i></b></p>
+  </body>
+</html>

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

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

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed21-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed21-expected.html b/Editor/tests/cursor/enterPressed21-expected.html
new file mode 100644
index 0000000..3c553d3
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed21-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <p><b><i>Sam</i></b></p>
+    <p>
+      <b>
+        <i>
+          []ple
+          <u>text</u>
+        </i>
+      </b>
+    </p>
+  </body>
+</html>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed28-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed28-input.html b/Editor/tests/cursor/enterPressed28-input.html
new file mode 100644
index 0000000..6498510
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed28-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    Cursor_enterPressed();
+    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/enterPressed29-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed29-expected.html b/Editor/tests/cursor/enterPressed29-expected.html
new file mode 100644
index 0000000..8fcc923
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed29-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p><br/></p>
+    <p>[]Some text</p>
+  </body>
+</html>

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed31-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed31-expected.html b/Editor/tests/cursor/enterPressed31-expected.html
new file mode 100644
index 0000000..665ebaf
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed31-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <div>
+      <p>On</p>
+      <p>[]e</p>
+      <p>Two</p>
+      <p>Three</p>
+    </div>
+  </body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed32-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed32-expected.html b/Editor/tests/cursor/enterPressed32-expected.html
new file mode 100644
index 0000000..e1d92ab
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed32-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body>
+    <div>
+      <p>On</p>
+      <p>[]e</p>
+      <p>Two</p>
+      <p>Three</p>
+    </div>
+    <div>
+      <p>Four</p>
+      <p>Five</p>
+      <p>Six</p>
+    </div>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/enterPressed32-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/enterPressed32-input.html b/Editor/tests/cursor/enterPressed32-input.html
new file mode 100644
index 0000000..4bf16c3
--- /dev/null
+++ b/Editor/tests/cursor/enterPressed32-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_enterPressed();
+    showSelection();
+}
+</script>
+</head>
+<body>
+<div>
+  <p>On[]e</p>
+  <p>Two</p>
+  <p>Three</p>
+</div>
+<div>
+  <p>Four</p>
+  <p>Five</p>
+  <p>Six</p>
+</div>
+</body>
+</html>

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

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

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

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-caption01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-caption01-expected.html b/Editor/tests/cursor/insertCharacter-caption01-expected.html
new file mode 100644
index 0000000..abbcf70
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-caption01-expected.html
@@ -0,0 +1,24 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <table id="item1" style="width: 100%">
+      <caption>TestX[]</caption>
+      <colgroup>
+        <col width="50%"/>
+        <col width="50%"/>
+      </colgroup>
+      <tbody>
+        <tr>
+          <td>0, 0</td>
+          <td>0, 1</td>
+        </tr>
+        <tr>
+          <td>1, 0</td>
+          <td>1, 1</td>
+        </tr>
+      </tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-caption01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-caption01-input.html b/Editor/tests/cursor/insertCharacter-caption01-input.html
new file mode 100644
index 0000000..99952e9
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-caption01-input.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var caption = document.getElementsByTagName("CAPTION")[0];
+    var last = caption.lastChild;
+    Selection_set(last,4,last,4);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <table style="width: 100%">
+    <caption>
+      Table 1: Test
+    </caption>
+    <col width="50%">
+    <col width="50%">
+    <tr>
+      <td>0, 0</td>
+      <td>0, 1</td>
+    </tr>
+    <tr>
+      <td>1, 0</td>
+      <td>1, 1</td>
+    </tr>
+  </table>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-caption02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-caption02-expected.html b/Editor/tests/cursor/insertCharacter-caption02-expected.html
new file mode 100644
index 0000000..434a323
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-caption02-expected.html
@@ -0,0 +1,24 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <table id="item1" style="width: 100%">
+      <caption>TesX[]t</caption>
+      <colgroup>
+        <col width="50%"/>
+        <col width="50%"/>
+      </colgroup>
+      <tbody>
+        <tr>
+          <td>0, 0</td>
+          <td>0, 1</td>
+        </tr>
+        <tr>
+          <td>1, 0</td>
+          <td>1, 1</td>
+        </tr>
+      </tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-caption02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-caption02-input.html b/Editor/tests/cursor/insertCharacter-caption02-input.html
new file mode 100644
index 0000000..1de4e27
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-caption02-input.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var caption = document.getElementsByTagName("CAPTION")[0];
+    var last = caption.lastChild;
+    Selection_set(last,3,last,3);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <table style="width: 100%">
+    <caption>
+      Table 1: Test
+    </caption>
+    <col width="50%">
+    <col width="50%">
+    <tr>
+      <td>0, 0</td>
+      <td>0, 1</td>
+    </tr>
+    <tr>
+      <td>1, 0</td>
+      <td>1, 1</td>
+    </tr>
+  </table>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash01-expected.html b/Editor/tests/cursor/insertCharacter-dash01-expected.html
new file mode 100644
index 0000000..4a3d3f9
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash01-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>Hyphen: Test-[]</p>
+    <p>charCode = 45</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash01-input.html b/Editor/tests/cursor/insertCharacter-dash01-input.html
new file mode 100644
index 0000000..2672220
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash01-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("-",true);
+    var text = getNodeText(document.body).replace(/\s+$/,"");
+    var charCode = text.charCodeAt(text.length-1);
+    var p = DOM_createElement(document,"P");
+    DOM_appendChild(p,DOM_createTextNode(document,"charCode = "+charCode));
+    DOM_appendChild(document.body,p);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Hyphen: Test[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash02-expected.html b/Editor/tests/cursor/insertCharacter-dash02-expected.html
new file mode 100644
index 0000000..e56ca87
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash02-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>En dash: 3–[]</p>
+    <p>charCode = 8211</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash02-input.html b/Editor/tests/cursor/insertCharacter-dash02-input.html
new file mode 100644
index 0000000..6160915
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash02-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("-",true);
+    var text = getNodeText(document.body).replace(/\s+$/,"");
+    var charCode = text.charCodeAt(text.length-1);
+    var p = DOM_createElement(document,"P");
+    DOM_appendChild(p,DOM_createTextNode(document,"charCode = "+charCode));
+    DOM_appendChild(document.body,p);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>En dash: 3[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash03-expected.html b/Editor/tests/cursor/insertCharacter-dash03-expected.html
new file mode 100644
index 0000000..393d898
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash03-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>Em dash: Test —[]</p>
+    <p>charCode = 8212</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash03-input.html b/Editor/tests/cursor/insertCharacter-dash03-input.html
new file mode 100644
index 0000000..f5ea661
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash03-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter(" ",true);
+    Cursor_insertCharacter("-",true);
+    var text = getNodeText(document.body).replace(/\s+$/,"");
+    var charCode = text.charCodeAt(text.length-1);
+    var p = DOM_createElement(document,"P");
+    DOM_appendChild(p,DOM_createTextNode(document,"charCode = "+charCode));
+    DOM_appendChild(document.body,p);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Em dash: Test[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash04-expected.html b/Editor/tests/cursor/insertCharacter-dash04-expected.html
new file mode 100644
index 0000000..690f325
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash04-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p>En dash: 3 –[]</p>
+    <p>charCode = 8211</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-dash04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-dash04-input.html b/Editor/tests/cursor/insertCharacter-dash04-input.html
new file mode 100644
index 0000000..62d81f3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-dash04-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter(" ",true);
+    Cursor_insertCharacter("-",true);
+    var text = getNodeText(document.body).replace(/\s+$/,"");
+    var charCode = text.charCodeAt(text.length-1);
+    var p = DOM_createElement(document,"P");
+    DOM_appendChild(p,DOM_createTextNode(document,"charCode = "+charCode));
+    DOM_appendChild(document.body,p);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>En dash: 3[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty01-expected.html b/Editor/tests/cursor/insertCharacter-empty01-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty01-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty02-expected.html b/Editor/tests/cursor/insertCharacter-empty02-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty02-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty03-expected.html b/Editor/tests/cursor/insertCharacter-empty03-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty03-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty04-expected.html b/Editor/tests/cursor/insertCharacter-empty04-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty04-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty04-input.html b/Editor/tests/cursor/insertCharacter-empty04-input.html
new file mode 100644
index 0000000..94b7158
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty04-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+[]<p><br></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty05-expected.html b/Editor/tests/cursor/insertCharacter-empty05-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty05-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty06-expected.html b/Editor/tests/cursor/insertCharacter-empty06-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty06-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty07-expected.html b/Editor/tests/cursor/insertCharacter-empty07-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty07-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty07-input.html b/Editor/tests/cursor/insertCharacter-empty07-input.html
new file mode 100644
index 0000000..6bd86e0
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty07-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p><br></p>[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty08-expected.html b/Editor/tests/cursor/insertCharacter-empty08-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty08-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty08-input.html b/Editor/tests/cursor/insertCharacter-empty08-input.html
new file mode 100644
index 0000000..48126b1
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty08-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var text = DOM_createTextNode(document,"");
+    DOM_insertBefore(p,text,p.firstChild);
+    Selection_setEmptySelectionAt(text,0);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p><br></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty09-expected.html b/Editor/tests/cursor/insertCharacter-empty09-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty09-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty09-input.html b/Editor/tests/cursor/insertCharacter-empty09-input.html
new file mode 100644
index 0000000..9bc1a88
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty09-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var text = DOM_createTextNode(document,"");
+    DOM_appendChild(p,text);
+    Selection_setEmptySelectionAt(text,0);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p><br></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty10-expected.html b/Editor/tests/cursor/insertCharacter-empty10-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty10-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty10-input.html b/Editor/tests/cursor/insertCharacter-empty10-input.html
new file mode 100644
index 0000000..b90ca34
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty10-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var br = document.getElementsByTagName("BR")[0];
+    Selection_setEmptySelectionAt(br,0);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p><br></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty11-expected.html b/Editor/tests/cursor/insertCharacter-empty11-expected.html
new file mode 100644
index 0000000..809ffc3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty11-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X[]</p></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-empty11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-empty11-input.html b/Editor/tests/cursor/insertCharacter-empty11-input.html
new file mode 100644
index 0000000..5ee8a10
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-empty11-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-figcaption01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-figcaption01-expected.html b/Editor/tests/cursor/insertCharacter-figcaption01-expected.html
new file mode 100644
index 0000000..251ec5a
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-figcaption01-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="../figures/nothing.png"/>
+      <figcaption>TestX[]</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-figcaption01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-figcaption01-input.html b/Editor/tests/cursor/insertCharacter-figcaption01-input.html
new file mode 100644
index 0000000..4ddb2ff
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-figcaption01-input.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var caption = document.getElementsByTagName("FIGCAPTION")[0];
+    var last = caption.lastChild;
+    Selection_set(last,4,last,4);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <figure>
+    <img src="../figures/nothing.png">
+    <figcaption>Figure 1: Test</figcaption>
+  </figure>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-figcaption02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-figcaption02-expected.html b/Editor/tests/cursor/insertCharacter-figcaption02-expected.html
new file mode 100644
index 0000000..feb6a58
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-figcaption02-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="../figures/nothing.png"/>
+      <figcaption>TesX[]t</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-figcaption02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-figcaption02-input.html b/Editor/tests/cursor/insertCharacter-figcaption02-input.html
new file mode 100644
index 0000000..1e81518
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-figcaption02-input.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var caption = document.getElementsByTagName("FIGCAPTION")[0];
+    var last = caption.lastChild;
+    Selection_set(last,3,last,3);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+  <figure>
+    <img src="../figures/nothing.png">
+    <figcaption>Figure 1: Test</figcaption>
+  </figure>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list01-expected.html b/Editor/tests/cursor/insertCharacter-list01-expected.html
new file mode 100644
index 0000000..a9ec003
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list01-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>X[]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/insertCharacter-list01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list01-input.html b/Editor/tests/cursor/insertCharacter-list01-input.html
new file mode 100644
index 0000000..4f681f8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list01-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    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/insertCharacter-list02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list02-expected.html b/Editor/tests/cursor/insertCharacter-list02-expected.html
new file mode 100644
index 0000000..043de04
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list02-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>ThreeX[]</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list02-input.html b/Editor/tests/cursor/insertCharacter-list02-input.html
new file mode 100644
index 0000000..d7419ee
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list02-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    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/insertCharacter-list03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list03-expected.html b/Editor/tests/cursor/insertCharacter-list03-expected.html
new file mode 100644
index 0000000..a9ec003
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list03-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>X[]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/insertCharacter-list03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list03-input.html b/Editor/tests/cursor/insertCharacter-list03-input.html
new file mode 100644
index 0000000..41236f5
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list03-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    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/insertCharacter-list04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list04-expected.html b/Editor/tests/cursor/insertCharacter-list04-expected.html
new file mode 100644
index 0000000..8d32bc9
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list04-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>X[]Three</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list04-input.html b/Editor/tests/cursor/insertCharacter-list04-input.html
new file mode 100644
index 0000000..8cadcde
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list04-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    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/insertCharacter-list05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list05-expected.html b/Editor/tests/cursor/insertCharacter-list05-expected.html
new file mode 100644
index 0000000..043de04
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list05-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>ThreeX[]</li>
+    </ol>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list05-input.html b/Editor/tests/cursor/insertCharacter-list05-input.html
new file mode 100644
index 0000000..02cac2f
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list05-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    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/insertCharacter-list06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list06-expected.html b/Editor/tests/cursor/insertCharacter-list06-expected.html
new file mode 100644
index 0000000..d278786
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list06-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <p>Before</p>
+    <ol>
+      <li>X[]One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+    <p>After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list06-input.html b/Editor/tests/cursor/insertCharacter-list06-input.html
new file mode 100644
index 0000000..fa77a38
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list06-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+[]
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+</ol>
+<p>After</p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list07-input.html b/Editor/tests/cursor/insertCharacter-list07-input.html
new file mode 100644
index 0000000..fb981c8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list07-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+</ol>
+[]
+<p>After</p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list08-input.html b/Editor/tests/cursor/insertCharacter-list08-input.html
new file mode 100644
index 0000000..5cdcb46
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list08-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+<ol>
+  []
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+</ol>
+<p>After</p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list09-input.html b/Editor/tests/cursor/insertCharacter-list09-input.html
new file mode 100644
index 0000000..8a74535
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list09-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  []
+  <li>Three</li>
+</ol>
+<p>After</p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-list10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-list10-input.html b/Editor/tests/cursor/insertCharacter-list10-input.html
new file mode 100644
index 0000000..3905f4b
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-list10-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+  []
+</ol>
+<p>After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-quotes01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-quotes01-expected.html b/Editor/tests/cursor/insertCharacter-quotes01-expected.html
new file mode 100644
index 0000000..1d54adb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-quotes01-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head>
+    <meta charset="utf-8"/>
+  </head>
+  <body><p>A 15" “screen”</p></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-quotes01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-quotes01-input.html b/Editor/tests/cursor/insertCharacter-quotes01-input.html
new file mode 100644
index 0000000..8b2dd72
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-quotes01-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("A");
+    Cursor_insertCharacter(" ");
+    Cursor_insertCharacter("1");
+    Cursor_insertCharacter("5");
+    Cursor_insertCharacter("“");
+    Cursor_insertCharacter("”");
+    Cursor_insertCharacter(" ");
+    Cursor_insertCharacter("“");
+    Cursor_insertCharacter("s");
+    Cursor_insertCharacter("c");
+    Cursor_insertCharacter("r");
+    Cursor_insertCharacter("e");
+    Cursor_insertCharacter("e");
+    Cursor_insertCharacter("n");
+    Cursor_insertCharacter("”");
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-space01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-space01-expected.html b/Editor/tests/cursor/insertCharacter-space01-expected.html
new file mode 100644
index 0000000..b1d8dad
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-space01-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><p>X&nbsp;[]</p></body>
+</html>

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

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

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

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

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

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

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

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

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-space06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-space06-expected.html b/Editor/tests/cursor/insertCharacter-space06-expected.html
new file mode 100644
index 0000000..57afce5
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-space06-expected.html
@@ -0,0 +1,9 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      <b><i><u>[]</u></i></b>
+      <br/>
+    </p>
+  </body>
+</html>


Mime
View raw message