You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by pm...@apache.org on 2014/12/17 14:28:41 UTC
[31/92] [abbrv] [partial] incubator-corinthia git commit: Add editing
code from UX Write
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-space06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-space06-input.html b/Editor/tests/cursor/insertCharacter-space06-input.html
new file mode 100644
index 0000000..cd35e0a
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-space06-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter(" ");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<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/insertCharacter-space07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-space07-expected.html b/Editor/tests/cursor/insertCharacter-space07-expected.html
new file mode 100644
index 0000000..0424077
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-space07-expected.html
@@ -0,0 +1,10 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ []
+ <b><i><u/></i></b>
+ <br/>
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-space07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-space07-input.html b/Editor/tests/cursor/insertCharacter-space07-input.html
new file mode 100644
index 0000000..12ffb04
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-space07-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter(" ");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<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/insertCharacter-space08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-space08-expected.html b/Editor/tests/cursor/insertCharacter-space08-expected.html
new file mode 100644
index 0000000..9664dbc
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-space08-expected.html
@@ -0,0 +1,10 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ <b><i><u/></i></b>
+ []
+ <br/>
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-space08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-space08-input.html b/Editor/tests/cursor/insertCharacter-space08-input.html
new file mode 100644
index 0000000..e3736bb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-space08-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter(" ");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<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/insertCharacter-spchar01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar01-expected.html b/Editor/tests/cursor/insertCharacter-spchar01-expected.html
new file mode 100644
index 0000000..052e8a9
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar01-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-spchar01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar01-input.html b/Editor/tests/cursor/insertCharacter-spchar01-input.html
new file mode 100644
index 0000000..84b2edd
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar01-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+ showNonEmptyTextNodes();
+}
+</script>
+</head>
+<body>
+<p> []<br/></p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-spchar02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar02-expected.html b/Editor/tests/cursor/insertCharacter-spchar02-expected.html
new file mode 100644
index 0000000..31e2180
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar02-expected.html
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ <b></b>
+ {X[]}
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-spchar02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar02-input.html b/Editor/tests/cursor/insertCharacter-spchar02-input.html
new file mode 100644
index 0000000..c3e6fb3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar02-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+ showNonEmptyTextNodes();
+}
+</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-spchar03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar03-expected.html b/Editor/tests/cursor/insertCharacter-spchar03-expected.html
new file mode 100644
index 0000000..a9bb7f3
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar03-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p><b>{X[]}</b></p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-spchar03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar03-input.html b/Editor/tests/cursor/insertCharacter-spchar03-input.html
new file mode 100644
index 0000000..40df599
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar03-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+ showNonEmptyTextNodes();
+}
+</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-spchar04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar04-expected.html b/Editor/tests/cursor/insertCharacter-spchar04-expected.html
new file mode 100644
index 0000000..a94940b
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar04-expected.html
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ <b/>
+ {X[]}
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-spchar04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-spchar04-input.html b/Editor/tests/cursor/insertCharacter-spchar04-input.html
new file mode 100644
index 0000000..502f8d8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-spchar04-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+ showNonEmptyTextNodes();
+}
+</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-table01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table01-expected.html b/Editor/tests/cursor/insertCharacter-table01-expected.html
new file mode 100644
index 0000000..9208e92
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table01-expected.html
@@ -0,0 +1,25 @@
+<html>
+ <head></head>
+ <body>
+ <p>X[]</p>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table01-input.html b/Editor/tests/cursor/insertCharacter-table01-input.html
new file mode 100644
index 0000000..3cb1b98
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table01-input.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+[]
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table02-expected.html b/Editor/tests/cursor/insertCharacter-table02-expected.html
new file mode 100644
index 0000000..1c435b8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table02-expected.html
@@ -0,0 +1,25 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ <p>X[]</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table02-input.html b/Editor/tests/cursor/insertCharacter-table02-input.html
new file mode 100644
index 0000000..c097f35
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table02-input.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+[]
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table03-expected.html b/Editor/tests/cursor/insertCharacter-table03-expected.html
new file mode 100644
index 0000000..696f71d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table03-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>X[]One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table03-input.html b/Editor/tests/cursor/insertCharacter-table03-input.html
new file mode 100644
index 0000000..e3e7de6
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table03-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(trs[0].parentNode,DOM_nodeOffset(trs[0]));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table04-expected.html b/Editor/tests/cursor/insertCharacter-table04-expected.html
new file mode 100644
index 0000000..4b35fbd
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table04-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>X[]Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table04-input.html b/Editor/tests/cursor/insertCharacter-table04-input.html
new file mode 100644
index 0000000..39b72b6
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table04-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(trs[2].parentNode,DOM_nodeOffset(trs[2]));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table05-expected.html b/Editor/tests/cursor/insertCharacter-table05-expected.html
new file mode 100644
index 0000000..1c435b8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table05-expected.html
@@ -0,0 +1,25 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ <p>X[]</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table05-input.html b/Editor/tests/cursor/insertCharacter-table05-input.html
new file mode 100644
index 0000000..70b4e0f
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table05-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(trs[2].parentNode,DOM_nodeOffset(trs[2])+1);
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table06-expected.html b/Editor/tests/cursor/insertCharacter-table06-expected.html
new file mode 100644
index 0000000..4b35fbd
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table06-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>X[]Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table06-input.html b/Editor/tests/cursor/insertCharacter-table06-input.html
new file mode 100644
index 0000000..6d23df0
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table06-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(tds[6].parentNode,DOM_nodeOffset(tds[6]));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table07-expected.html b/Editor/tests/cursor/insertCharacter-table07-expected.html
new file mode 100644
index 0000000..5b97824
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table07-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>X[]Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table07-input.html b/Editor/tests/cursor/insertCharacter-table07-input.html
new file mode 100644
index 0000000..f033d0b
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table07-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(tds[8].parentNode,DOM_nodeOffset(tds[8]));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table08-expected.html b/Editor/tests/cursor/insertCharacter-table08-expected.html
new file mode 100644
index 0000000..1c435b8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table08-expected.html
@@ -0,0 +1,25 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ <p>X[]</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table08-input.html b/Editor/tests/cursor/insertCharacter-table08-input.html
new file mode 100644
index 0000000..86dd63e
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table08-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(tds[8].parentNode,DOM_nodeOffset(tds[8])+1);
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table09-expected.html b/Editor/tests/cursor/insertCharacter-table09-expected.html
new file mode 100644
index 0000000..4b35fbd
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table09-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>X[]Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table09-input.html b/Editor/tests/cursor/insertCharacter-table09-input.html
new file mode 100644
index 0000000..409d3cf
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table09-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(tds[5].parentNode,DOM_nodeOffset(tds[5])+1);
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table10-expected.html b/Editor/tests/cursor/insertCharacter-table10-expected.html
new file mode 100644
index 0000000..696f71d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table10-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>X[]One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table10-input.html b/Editor/tests/cursor/insertCharacter-table10-input.html
new file mode 100644
index 0000000..6e1625f
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table10-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(tds[0].parentNode,DOM_nodeOffset(tds[0]));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table11-expected.html b/Editor/tests/cursor/insertCharacter-table11-expected.html
new file mode 100644
index 0000000..696f71d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table11-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>X[]One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table11-input.html b/Editor/tests/cursor/insertCharacter-table11-input.html
new file mode 100644
index 0000000..7d20edf
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table11-input.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(tbody.parentNode,DOM_nodeOffset(tbody));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table12-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table12-expected.html b/Editor/tests/cursor/insertCharacter-table12-expected.html
new file mode 100644
index 0000000..1c435b8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table12-expected.html
@@ -0,0 +1,25 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ <p>X[]</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table12-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table12-input.html b/Editor/tests/cursor/insertCharacter-table12-input.html
new file mode 100644
index 0000000..6f4bf7e
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table12-input.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(tbody.parentNode,DOM_nodeOffset(tbody)+1);
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table13-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table13-expected.html b/Editor/tests/cursor/insertCharacter-table13-expected.html
new file mode 100644
index 0000000..696f71d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table13-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>X[]One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table13-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table13-input.html b/Editor/tests/cursor/insertCharacter-table13-input.html
new file mode 100644
index 0000000..40bb67a
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table13-input.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(trs[0].parentNode,DOM_nodeOffset(trs[0]));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table14-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table14-expected.html b/Editor/tests/cursor/insertCharacter-table14-expected.html
new file mode 100644
index 0000000..4b35fbd
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table14-expected.html
@@ -0,0 +1,24 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>X[]Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table14-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table14-input.html b/Editor/tests/cursor/insertCharacter-table14-input.html
new file mode 100644
index 0000000..0fb6d8a
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table14-input.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(trs[2].parentNode,DOM_nodeOffset(trs[2]));
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table15-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table15-expected.html b/Editor/tests/cursor/insertCharacter-table15-expected.html
new file mode 100644
index 0000000..1c435b8
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table15-expected.html
@@ -0,0 +1,25 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+ </table>
+ <p>X[]</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-table15-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-table15-input.html b/Editor/tests/cursor/insertCharacter-table15-input.html
new file mode 100644
index 0000000..89e262e
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-table15-input.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var trs = document.getElementsByTagName("TR");
+ var tds = document.getElementsByTagName("TD");
+ var tbody = document.getElementsByTagName("TBODY")[0];
+ Selection_setEmptySelectionAt(trs[2].parentNode,DOM_nodeOffset(trs[2])+1);
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ <tr>
+ <td>Four</td>
+ <td>Five</td>
+ <td>Six</td>
+ </tr>
+ <tr>
+ <td>Seven</td>
+ <td>Eight</td>
+ <td>Nine</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph01-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph01-expected.html
new file mode 100644
index 0000000..a64235d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph01-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>X[]Sample text</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph01-input.html b/Editor/tests/cursor/insertCharacter-toparagraph01-input.html
new file mode 100644
index 0000000..eb9ff70
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph01-input.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function deleteNeighbours(node)
+{
+ while (node.previousSibling != null)
+ DOM_deleteNode(node.previousSibling);
+ while (node.nextSibling != null)
+ DOM_deleteNode(node.nextSibling);
+}
+
+function performTest()
+{
+ var p = document.getElementsByTagName("P")[0];
+ deleteNeighbours(p);
+
+ Selection_setEmptySelectionAt(document.body,0);
+
+ Cursor_insertCharacter("X");
+ 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/insertCharacter-toparagraph02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph02-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph02-expected.html
new file mode 100644
index 0000000..fb4aefb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph02-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample textX[]</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph02-input.html b/Editor/tests/cursor/insertCharacter-toparagraph02-input.html
new file mode 100644
index 0000000..46d771b
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph02-input.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function deleteNeighbours(node)
+{
+ while (node.previousSibling != null)
+ DOM_deleteNode(node.previousSibling);
+ while (node.nextSibling != null)
+ DOM_deleteNode(node.nextSibling);
+}
+
+function performTest()
+{
+ var p = document.getElementsByTagName("P")[0];
+ deleteNeighbours(p);
+
+ Selection_setEmptySelectionAt(document.body,1);
+
+ Cursor_insertCharacter("X");
+ 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/insertCharacter-toparagraph03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph03-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph03-expected.html
new file mode 100644
index 0000000..a64235d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph03-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>X[]Sample text</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph03-input.html b/Editor/tests/cursor/insertCharacter-toparagraph03-input.html
new file mode 100644
index 0000000..c255625
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph03-input.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function deleteNeighbours(node)
+{
+ while (node.previousSibling != null)
+ DOM_deleteNode(node.previousSibling);
+ while (node.nextSibling != null)
+ DOM_deleteNode(node.nextSibling);
+}
+
+function performTest()
+{
+ var p = document.getElementsByTagName("P")[0];
+ deleteNeighbours(p);
+
+ DOM_insertBefore(document.body,DOM_createTextNode(document," "),p);
+ DOM_insertBefore(document.body,DOM_createTextNode(document," "),p);
+ DOM_insertBefore(document.body,DOM_createTextNode(document," "),p);
+
+ Selection_setEmptySelectionAt(document.body,0);
+
+ Cursor_insertCharacter("X");
+ 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/insertCharacter-toparagraph04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph04-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph04-expected.html
new file mode 100644
index 0000000..fb4aefb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph04-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample textX[]</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph04-input.html b/Editor/tests/cursor/insertCharacter-toparagraph04-input.html
new file mode 100644
index 0000000..845dc37
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph04-input.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function deleteNeighbours(node)
+{
+ while (node.previousSibling != null)
+ DOM_deleteNode(node.previousSibling);
+ while (node.nextSibling != null)
+ DOM_deleteNode(node.nextSibling);
+}
+
+function performTest()
+{
+ var p = document.getElementsByTagName("P")[0];
+ deleteNeighbours(p);
+
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+
+ Selection_setEmptySelectionAt(document.body,document.body.childNodes.length);
+
+ Cursor_insertCharacter("X");
+ 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/insertCharacter-toparagraph05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph05-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph05-expected.html
new file mode 100644
index 0000000..a64235d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph05-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>X[]Sample text</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph05-input.html b/Editor/tests/cursor/insertCharacter-toparagraph05-input.html
new file mode 100644
index 0000000..1743963
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph05-input.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function deleteNeighbours(node)
+{
+ while (node.previousSibling != null)
+ DOM_deleteNode(node.previousSibling);
+ while (node.nextSibling != null)
+ DOM_deleteNode(node.nextSibling);
+}
+
+function performTest()
+{
+ var p = document.getElementsByTagName("P")[0];
+ deleteNeighbours(p);
+
+ DOM_insertBefore(document.body,DOM_createTextNode(document," "),p);
+ DOM_insertBefore(document.body,DOM_createTextNode(document," "),p);
+ DOM_insertBefore(document.body,DOM_createTextNode(document," "),p);
+
+ Selection_setEmptySelectionAt(document.body.firstChild,0);
+
+ Cursor_insertCharacter("X");
+ 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/insertCharacter-toparagraph06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph06-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph06-expected.html
new file mode 100644
index 0000000..fb4aefb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph06-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample textX[]</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph06-input.html b/Editor/tests/cursor/insertCharacter-toparagraph06-input.html
new file mode 100644
index 0000000..834af45
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph06-input.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function deleteNeighbours(node)
+{
+ while (node.previousSibling != null)
+ DOM_deleteNode(node.previousSibling);
+ while (node.nextSibling != null)
+ DOM_deleteNode(node.nextSibling);
+}
+
+function performTest()
+{
+ var p = document.getElementsByTagName("P")[0];
+ deleteNeighbours(p);
+
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+
+ Selection_setEmptySelectionAt(document.body.lastChild,0);
+
+ Cursor_insertCharacter("X");
+ 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/insertCharacter-toparagraph07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph07-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph07-expected.html
new file mode 100644
index 0000000..03bf992
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph07-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>First</p>
+ <p>X[]Second</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph07-input.html b/Editor/tests/cursor/insertCharacter-toparagraph07-input.html
new file mode 100644
index 0000000..383293b
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph07-input.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ DOM_deleteAllChildren(document.body);
+
+
+ var p1 = DOM_createElement(document,"P");
+ var p2 = DOM_createElement(document,"P");
+ DOM_appendChild(p1,DOM_createTextNode(document,"First"));
+ DOM_appendChild(p2,DOM_createTextNode(document,"Second"));
+
+ DOM_appendChild(document.body,p1);
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,p2);
+
+ Selection_setEmptySelectionAt(document.body,3);
+
+ 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-toparagraph08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph08-expected.html b/Editor/tests/cursor/insertCharacter-toparagraph08-expected.html
new file mode 100644
index 0000000..03bf992
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph08-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>First</p>
+ <p>X[]Second</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter-toparagraph08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter-toparagraph08-input.html b/Editor/tests/cursor/insertCharacter-toparagraph08-input.html
new file mode 100644
index 0000000..26fb865
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter-toparagraph08-input.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ DOM_deleteAllChildren(document.body);
+
+
+ var p1 = DOM_createElement(document,"P");
+ var p2 = DOM_createElement(document,"P");
+ DOM_appendChild(p1,DOM_createTextNode(document,"First"));
+ DOM_appendChild(p2,DOM_createTextNode(document,"Second"));
+
+ DOM_appendChild(document.body,p1);
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,DOM_createTextNode(document," "));
+ DOM_appendChild(document.body,p2);
+
+ Selection_setEmptySelectionAt(document.body.childNodes[3],0);
+
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter01-expected.html b/Editor/tests/cursor/insertCharacter01-expected.html
new file mode 100644
index 0000000..fb4aefb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter01-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample textX[]</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter01-input.html b/Editor/tests/cursor/insertCharacter01-input.html
new file mode 100644
index 0000000..d33d412
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ 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/insertCharacter02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter02-expected.html b/Editor/tests/cursor/insertCharacter02-expected.html
new file mode 100644
index 0000000..be6fe09
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter02-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample tX[]ext</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter02-input.html b/Editor/tests/cursor/insertCharacter02-input.html
new file mode 100644
index 0000000..bbd2717
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter02-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ 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/insertCharacter03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter03-expected.html b/Editor/tests/cursor/insertCharacter03-expected.html
new file mode 100644
index 0000000..a64235d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter03-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>X[]Sample text</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter03-input.html b/Editor/tests/cursor/insertCharacter03-input.html
new file mode 100644
index 0000000..191419a
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter03-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ 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/insertCharacter04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter04-expected.html b/Editor/tests/cursor/insertCharacter04-expected.html
new file mode 100644
index 0000000..fb4aefb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter04-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample textX[]</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter04-input.html b/Editor/tests/cursor/insertCharacter04-input.html
new file mode 100644
index 0000000..fd5e005
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter04-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+Sample text[]
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter05-expected.html b/Editor/tests/cursor/insertCharacter05-expected.html
new file mode 100644
index 0000000..be6fe09
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter05-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample tX[]ext</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter05-input.html b/Editor/tests/cursor/insertCharacter05-input.html
new file mode 100644
index 0000000..baa2bb9
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter05-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+Sample t[]ext
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter06-expected.html b/Editor/tests/cursor/insertCharacter06-expected.html
new file mode 100644
index 0000000..a64235d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter06-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>X[]Sample text</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter06-input.html b/Editor/tests/cursor/insertCharacter06-input.html
new file mode 100644
index 0000000..2602ad1
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter06-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+[]Sample text
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter07-expected.html b/Editor/tests/cursor/insertCharacter07-expected.html
new file mode 100644
index 0000000..a64235d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter07-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>X[]Sample text</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter07-input.html b/Editor/tests/cursor/insertCharacter07-input.html
new file mode 100644
index 0000000..6181d24
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter07-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ 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/insertCharacter08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter08-expected.html b/Editor/tests/cursor/insertCharacter08-expected.html
new file mode 100644
index 0000000..fb4aefb
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter08-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample textX[]</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter08-input.html b/Editor/tests/cursor/insertCharacter08-input.html
new file mode 100644
index 0000000..aab4e49
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter08-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ 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/insertCharacter09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter09-expected.html b/Editor/tests/cursor/insertCharacter09-expected.html
new file mode 100644
index 0000000..03bf992
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter09-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>First</p>
+ <p>X[]Second</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter09-input.html b/Editor/tests/cursor/insertCharacter09-input.html
new file mode 100644
index 0000000..8fc5813
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter09-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>First</p>
+[]
+<p>Second</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter10-expected.html b/Editor/tests/cursor/insertCharacter10-expected.html
new file mode 100644
index 0000000..2f18009
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter10-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p>Sample text one two three[]</p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter10-input.html b/Editor/tests/cursor/insertCharacter10-input.html
new file mode 100644
index 0000000..f1b4168
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter10-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var str = " one two three";
+ Cursor_insertCharacter(str);
+ 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/insertCharacter11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter11-expected.html b/Editor/tests/cursor/insertCharacter11-expected.html
new file mode 100644
index 0000000..fa6f10d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter11-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>First one []</p>
+ <p>Second two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter11-input.html b/Editor/tests/cursor/insertCharacter11-input.html
new file mode 100644
index 0000000..6dc143f
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter11-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter(" ");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>First one[]</p>
+<p>Second two</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter12-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter12-expected.html b/Editor/tests/cursor/insertCharacter12-expected.html
new file mode 100644
index 0000000..7f3b692
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter12-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <p>First one</p>
+ <p>X[]</p>
+ <p>Second two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter12-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter12-input.html b/Editor/tests/cursor/insertCharacter12-input.html
new file mode 100644
index 0000000..00cc2be
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter12-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter(" ");
+ Cursor_enterPressed();
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>First one[]</p>
+<p>Second two</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter13-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter13-expected.html b/Editor/tests/cursor/insertCharacter13-expected.html
new file mode 100644
index 0000000..74eb5c4
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter13-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>First one</p>
+ <p>X[]Second two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter13-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter13-input.html b/Editor/tests/cursor/insertCharacter13-input.html
new file mode 100644
index 0000000..6ed0d0c
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter13-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>First one</p>
+<p>[]Second two</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter14-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter14-expected.html b/Editor/tests/cursor/insertCharacter14-expected.html
new file mode 100644
index 0000000..5b9b440
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter14-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>one A[]</p>
+ <p>three</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter14-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter14-input.html b/Editor/tests/cursor/insertCharacter14-input.html
new file mode 100644
index 0000000..693563b
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter14-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("A");
+ 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/insertCharacter15-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter15-expected.html b/Editor/tests/cursor/insertCharacter15-expected.html
new file mode 100644
index 0000000..6209a3d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter15-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <p>Before</p>
+ <p>X[]</p>
+ <p>After</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter15-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter15-input.html b/Editor/tests/cursor/insertCharacter15-input.html
new file mode 100644
index 0000000..63fced5
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter15-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+<p>[Sample text]</p>
+<p>After</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter16-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter16-expected.html b/Editor/tests/cursor/insertCharacter16-expected.html
new file mode 100644
index 0000000..6209a3d
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter16-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <p>Before</p>
+ <p>X[]</p>
+ <p>After</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertCharacter16-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertCharacter16-input.html b/Editor/tests/cursor/insertCharacter16-input.html
new file mode 100644
index 0000000..f33510a
--- /dev/null
+++ b/Editor/tests/cursor/insertCharacter16-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertCharacter("X");
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+<p>[]<br></p>
+<p>After</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote01-expected.html b/Editor/tests/cursor/insertEndnote01-expected.html
new file mode 100644
index 0000000..04301af
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote01-expected.html
@@ -0,0 +1,10 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ before
+ <span class="endnote">[Endnote content]</span>
+ after
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote01-input.html b/Editor/tests/cursor/insertEndnote01-input.html
new file mode 100644
index 0000000..9ff5e4d
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertEndnote("Endnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>before[]after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote02-expected.html b/Editor/tests/cursor/insertEndnote02-expected.html
new file mode 100644
index 0000000..ff397ec
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote02-expected.html
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ before
+ <span class="endnote">[Endnote content]</span>
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote02-input.html b/Editor/tests/cursor/insertEndnote02-input.html
new file mode 100644
index 0000000..1074b1c
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote02-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertEndnote("Endnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>before[]</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote03-expected.html b/Editor/tests/cursor/insertEndnote03-expected.html
new file mode 100644
index 0000000..46a51b1
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote03-expected.html
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ <span class="endnote">[Endnote content]</span>
+ after
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote03-input.html b/Editor/tests/cursor/insertEndnote03-input.html
new file mode 100644
index 0000000..9226476
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote03-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertEndnote("Endnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>[]after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote04-expected.html b/Editor/tests/cursor/insertEndnote04-expected.html
new file mode 100644
index 0000000..2e542e9
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote04-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p><span class="endnote">[Endnote content]</span></p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote04-input.html b/Editor/tests/cursor/insertEndnote04-input.html
new file mode 100644
index 0000000..73cc7c4
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote04-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertEndnote("Endnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>[]</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote05-expected.html b/Editor/tests/cursor/insertEndnote05-expected.html
new file mode 100644
index 0000000..2e542e9
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote05-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p><span class="endnote">[Endnote content]</span></p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote05-input.html b/Editor/tests/cursor/insertEndnote05-input.html
new file mode 100644
index 0000000..04eac74
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote05-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertEndnote("Endnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>[]<br></p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote06-expected.html b/Editor/tests/cursor/insertEndnote06-expected.html
new file mode 100644
index 0000000..2a32f60
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote06-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><span class="endnote">[Endnote content]</span></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertEndnote06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertEndnote06-input.html b/Editor/tests/cursor/insertEndnote06-input.html
new file mode 100644
index 0000000..a527c5e
--- /dev/null
+++ b/Editor/tests/cursor/insertEndnote06-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertEndnote("Endnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote01-expected.html b/Editor/tests/cursor/insertFootnote01-expected.html
new file mode 100644
index 0000000..9298458
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote01-expected.html
@@ -0,0 +1,10 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ before
+ <span class="footnote">[Footnote content]</span>
+ after
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote01-input.html b/Editor/tests/cursor/insertFootnote01-input.html
new file mode 100644
index 0000000..7d4852c
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertFootnote("Footnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>before[]after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote02-expected.html b/Editor/tests/cursor/insertFootnote02-expected.html
new file mode 100644
index 0000000..d3dfd45
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote02-expected.html
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ before
+ <span class="footnote">[Footnote content]</span>
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote02-input.html b/Editor/tests/cursor/insertFootnote02-input.html
new file mode 100644
index 0000000..0957ba4
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote02-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertFootnote("Footnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>before[]</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote03-expected.html b/Editor/tests/cursor/insertFootnote03-expected.html
new file mode 100644
index 0000000..c577e33
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote03-expected.html
@@ -0,0 +1,9 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ <span class="footnote">[Footnote content]</span>
+ after
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote03-input.html b/Editor/tests/cursor/insertFootnote03-input.html
new file mode 100644
index 0000000..ec62f58
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote03-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertFootnote("Footnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>[]after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote04-expected.html b/Editor/tests/cursor/insertFootnote04-expected.html
new file mode 100644
index 0000000..48b50fb
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote04-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p><span class="footnote">[Footnote content]</span></p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote04-input.html b/Editor/tests/cursor/insertFootnote04-input.html
new file mode 100644
index 0000000..22d9e2d
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote04-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertFootnote("Footnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>[]</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote05-expected.html b/Editor/tests/cursor/insertFootnote05-expected.html
new file mode 100644
index 0000000..48b50fb
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote05-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><p><span class="footnote">[Footnote content]</span></p></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote05-input.html b/Editor/tests/cursor/insertFootnote05-input.html
new file mode 100644
index 0000000..5c3885e
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote05-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertFootnote("Footnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+ <p>[]<br></p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote06-expected.html b/Editor/tests/cursor/insertFootnote06-expected.html
new file mode 100644
index 0000000..86c4dac
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote06-expected.html
@@ -0,0 +1,4 @@
+<html>
+ <head></head>
+ <body><span class="footnote">[Footnote content]</span></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/insertFootnote06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/insertFootnote06-input.html b/Editor/tests/cursor/insertFootnote06-input.html
new file mode 100644
index 0000000..9452059
--- /dev/null
+++ b/Editor/tests/cursor/insertFootnote06-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_insertFootnote("Footnote content");
+ showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/makeContainerInsertionPoint01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/makeContainerInsertionPoint01-expected.html b/Editor/tests/cursor/makeContainerInsertionPoint01-expected.html
new file mode 100644
index 0000000..21162a2
--- /dev/null
+++ b/Editor/tests/cursor/makeContainerInsertionPoint01-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ Sam
+ []xt
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/makeContainerInsertionPoint01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/makeContainerInsertionPoint01-input.html b/Editor/tests/cursor/makeContainerInsertionPoint01-input.html
new file mode 100644
index 0000000..098c7d9
--- /dev/null
+++ b/Editor/tests/cursor/makeContainerInsertionPoint01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_makeContainerInsertionPoint();
+ showSelection();
+}
+</script>
+</head>
+<body>
+Sam[ple te]xt
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/cursor/makeContainerInsertionPoint02a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/makeContainerInsertionPoint02a-expected.html b/Editor/tests/cursor/makeContainerInsertionPoint02a-expected.html
new file mode 100644
index 0000000..1e1cae0
--- /dev/null
+++ b/Editor/tests/cursor/makeContainerInsertionPoint02a-expected.html
@@ -0,0 +1,8 @@
+<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/makeContainerInsertionPoint02a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/makeContainerInsertionPoint02a-input.html b/Editor/tests/cursor/makeContainerInsertionPoint02a-input.html
new file mode 100644
index 0000000..b7d1c09
--- /dev/null
+++ b/Editor/tests/cursor/makeContainerInsertionPoint02a-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Cursor_makeContainerInsertionPoint();
+ 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/makeContainerInsertionPoint02b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/cursor/makeContainerInsertionPoint02b-expected.html b/Editor/tests/cursor/makeContainerInsertionPoint02b-expected.html
new file mode 100644
index 0000000..673c0c4
--- /dev/null
+++ b/Editor/tests/cursor/makeContainerInsertionPoint02b-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ []
+ <p>xt</p>
+ </body>
+</html>