You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by ja...@apache.org on 2015/08/14 18:10:15 UTC
[08/51] [abbrv] [partial] incubator-corinthia git commit: added js
test files
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table08-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table08-input.html
new file mode 100644
index 0000000..30eed24
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table08-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var tr = document.getElementsByTagName("TR")[1];
+ var offset = DOM_nodeOffset(tr);
+ Selection_set(tr.parentNode,offset,tr.parentNode,offset+1);
+ Selection_deleteContents();
+}
+</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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-expected.html
new file mode 100644
index 0000000..42d9ec2
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-expected.html
@@ -0,0 +1,14 @@
+<html>
+ <head></head>
+ <body>
+ <table border="1">
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ <td>Three</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-input.html
new file mode 100644
index 0000000..bf57040
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table09-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var tr1 = document.getElementsByTagName("TR")[1];
+ var tr2 = document.getElementsByTagName("TR")[2];
+ var tr1Offset = DOM_nodeOffset(tr1);
+ var tr2Offset = DOM_nodeOffset(tr2);
+ Selection_set(tr1.parentNode,tr1Offset,tr2.parentNode,tr2Offset+1);
+ Selection_deleteContents();
+}
+</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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-expected.html
new file mode 100644
index 0000000..a15e867
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>Content 2</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-input.html
new file mode 100644
index 0000000..d895378
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table10-input.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var tr = document.getElementsByTagName("TR")[1];
+ var p = document.getElementsByTagName("P")[0];
+ var trOffset = DOM_nodeOffset(tr);
+ var pOffset = DOM_nodeOffset(p);
+ Selection_set(tr.parentNode,trOffset,p.parentNode,pOffset+1);
+ Selection_deleteContents();
+}
+</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>
+<p>Content 1</p>
+<p>Content 2</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-expected.html
new file mode 100644
index 0000000..c6b79d1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ []
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-input.html
new file mode 100644
index 0000000..b96a924
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table11-input.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var tr = document.getElementsByTagName("TR")[1];
+ var table = document.getElementsByTagName("TABLE")[0];
+ var trOffset = DOM_nodeOffset(tr);
+ var tableOffset = DOM_nodeOffset(table);
+ Selection_set(table.parentNode,tableOffset,tr.parentNode,trOffset+1);
+ Selection_deleteContents();
+ 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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-expected.html
new file mode 100644
index 0000000..2c2157c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>Content 1</p>
+ []
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-input.html
new file mode 100644
index 0000000..2943f09
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table12-input.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ var tr = document.getElementsByTagName("TR")[1];
+ var p = document.getElementsByTagName("P")[1];
+ var trOffset = DOM_nodeOffset(tr);
+ var pOffset = DOM_nodeOffset(p);
+ Selection_set(p.parentNode,pOffset,tr.parentNode,trOffset+1);
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>Content 1</p>
+<p>Content 2</p>
+<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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-expected.html
new file mode 100644
index 0000000..c6b79d1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ []
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-input.html
new file mode 100644
index 0000000..116f8a9
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table13-input.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ 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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-expected.html
new file mode 100644
index 0000000..d809328
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>Content 1</p>
+ <p>Content 4</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-input.html
new file mode 100644
index 0000000..3712311
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table14-input.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<p>Content 1</p>
+[<p>Content 2</p>
+<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>
+<p>Content 3</p>]
+<p>Content 4</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-expected.html
new file mode 100644
index 0000000..4ce7ad1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>C[]t 4</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-input.html
new file mode 100644
index 0000000..94d65ab
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents-table15-input.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>C[ontent 1</p>
+<p>Content 2</p>
+<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>
+<p>Content 3</p>
+<p>Conten]t 4</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents01-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents01-expected.html
new file mode 100644
index 0000000..4724015
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents01-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>Sa[]t</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents01-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents01-input.html
new file mode 100644
index 0000000..e55f7d2
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sa[mple tex]t</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents02-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents02-expected.html
new file mode 100644
index 0000000..023378f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents02-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>Sa[]</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents02-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents02-input.html
new file mode 100644
index 0000000..a5a2954
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents02-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sa[mple text]</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents03-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents03-expected.html
new file mode 100644
index 0000000..a293fd8
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents03-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>[]xt</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents03-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents03-input.html
new file mode 100644
index 0000000..837a938
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents03-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>[Sample te]xt</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents04-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents04-expected.html
new file mode 100644
index 0000000..46a6a7c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents04-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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents04-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents04-input.html
new file mode 100644
index 0000000..7f356c0
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents04-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>[Sample text]</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents05-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents05-expected.html
new file mode 100644
index 0000000..c6b79d1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents05-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ []
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents05-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents05-input.html
new file mode 100644
index 0000000..e935522
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents05-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+[<p>Sample text</p>]
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents06-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents06-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents06-expected.html
new file mode 100644
index 0000000..c2af56c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents06-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>First one</p>
+ <p>Fourth four</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents06-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents06-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents06-input.html
new file mode 100644
index 0000000..fc83eaa
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents06-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<p>First one</p>
+[<p>Second two</p>
+<p>Third three</p>]
+<p>Fourth four</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents07-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents07-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents07-expected.html
new file mode 100644
index 0000000..2461855
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents07-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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents07-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents07-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents07-input.html
new file mode 100644
index 0000000..259ce0e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents07-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<p>First one</p>
+<p>Second two</p>
+[<p>Third three</p>
+<p>Fourth four</p>]
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents08-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents08-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents08-expected.html
new file mode 100644
index 0000000..82e6c67
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents08-expected.html
@@ -0,0 +1,7 @@
+<html>
+ <head></head>
+ <body>
+ <p>Third three</p>
+ <p>Fourth four</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents08-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents08-input.html
new file mode 100644
index 0000000..b4cdbcd
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents08-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+[<p>First one</p>
+<p>Second two</p>]
+<p>Third three</p>
+<p>Fourth four</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents09-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents09-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents09-expected.html
new file mode 100644
index 0000000..c6b79d1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents09-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ []
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents09-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents09-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents09-input.html
new file mode 100644
index 0000000..0a96fdf
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents09-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+[<p>First one</p>
+<p>Second two</p>
+<p>Third three</p>
+<p>Fourth four</p>]
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents10-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents10-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents10-expected.html
new file mode 100644
index 0000000..72e0a69
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents10-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>First []two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents10-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents10-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents10-input.html
new file mode 100644
index 0000000..681d804
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents10-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ 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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents11-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents11-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents11-expected.html
new file mode 100644
index 0000000..7979222
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents11-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>First []two</p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents11-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents11-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents11-input.html
new file mode 100644
index 0000000..c7497be
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents11-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<div>
+ <p>First [one</p>
+ <p>Second ]two</p>
+</div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents12-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents12-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents12-expected.html
new file mode 100644
index 0000000..7979222
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents12-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>First []two</p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents12-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents12-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents12-input.html
new file mode 100644
index 0000000..1b21c70
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents12-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<div><p>First [one</p></div>
+<div><p>Second ]two</p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents13-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents13-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents13-expected.html
new file mode 100644
index 0000000..509b325
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents13-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <h1>First []two</h1>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents13-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents13-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents13-input.html
new file mode 100644
index 0000000..f472860
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents13-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<h1>First [one</h1>
+<p>Second ]two</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents14-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents14-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents14-expected.html
new file mode 100644
index 0000000..330b717
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents14-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <h1>First []two</h1>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents14-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents14-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents14-input.html
new file mode 100644
index 0000000..e26f6e6
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents14-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<div>
+ <h1>First [one</h1>
+ <p>Second ]two</p>
+</div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents15-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents15-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents15-expected.html
new file mode 100644
index 0000000..330b717
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents15-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <h1>First []two</h1>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents15-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents15-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents15-input.html
new file mode 100644
index 0000000..7728cb3
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents15-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<div><h1>First [one</h1></div>
+<div><p>Second ]two</p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents16-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents16-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents16-expected.html
new file mode 100644
index 0000000..c13e48b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents16-expected.html
@@ -0,0 +1,11 @@
+<html>
+ <head>
+ <style>
+.one { color: blue }
+.two { color: red }
+ </style>
+ </head>
+ <body>
+ <p class="one">First []two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents16-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents16-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents16-input.html
new file mode 100644
index 0000000..5187b07
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents16-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+.one { color: blue }
+.two { color: red }
+</style>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p class="one">First [one</p>
+<p class="two">Second ]two</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents17-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents17-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents17-expected.html
new file mode 100644
index 0000000..62a51de
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents17-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p style="color: blue">First []two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents17-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents17-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents17-input.html
new file mode 100644
index 0000000..d5e97cd
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents17-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p style="color: blue">First [one</p>
+<p style="color: red">Second ]two</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents18-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents18-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents18-expected.html
new file mode 100644
index 0000000..72e0a69
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents18-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>First []two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents18-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents18-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents18-input.html
new file mode 100644
index 0000000..681d804
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents18-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ 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/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents18a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents18a-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents18a-expected.html
new file mode 100644
index 0000000..72e0a69
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents18a-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>First []two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents18a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents18a-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents18a-input.html
new file mode 100644
index 0000000..1a8ed3e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents18a-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+First [one
+<p>Second ]two</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents18b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents18b-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents18b-expected.html
new file mode 100644
index 0000000..72e0a69
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents18b-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p>First []two</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents18b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents18b-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents18b-input.html
new file mode 100644
index 0000000..f118f7f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents18b-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p>First [one</p>
+Second ]two
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents19-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents19-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents19-expected.html
new file mode 100644
index 0000000..d516e02
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents19-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p><b>First []two</b></p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents19-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents19-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents19-input.html
new file mode 100644
index 0000000..459a9ca
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents19-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p><b>First [one</b></p>
+<p><b>Second ]two</b></p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents19a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents19a-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents19a-expected.html
new file mode 100644
index 0000000..d516e02
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents19a-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p><b>First []two</b></p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents19a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents19a-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents19a-input.html
new file mode 100644
index 0000000..b25f656
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents19a-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<b>First [one</b>
+<p><b>Second ]two</b></p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents19b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents19b-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents19b-expected.html
new file mode 100644
index 0000000..d516e02
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents19b-expected.html
@@ -0,0 +1,6 @@
+<html>
+ <head></head>
+ <body>
+ <p><b>First []two</b></p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents19b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents19b-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents19b-input.html
new file mode 100644
index 0000000..606cf73
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents19b-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<p><b>First [one</b></p>
+<b>Second ]two</b>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents20-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents20-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents20-expected.html
new file mode 100644
index 0000000..7979222
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents20-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>First []two</p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents20-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents20-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents20-input.html
new file mode 100644
index 0000000..1b21c70
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents20-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<div><p>First [one</p></div>
+<div><p>Second ]two</p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents20a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents20a-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents20a-expected.html
new file mode 100644
index 0000000..7979222
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents20a-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>First []two</p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents20a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents20a-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents20a-input.html
new file mode 100644
index 0000000..18cea84
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents20a-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+First [one
+<div><p>Second ]two</p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents20b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents20b-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents20b-expected.html
new file mode 100644
index 0000000..7979222
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents20b-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>First []two</p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents20b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents20b-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents20b-input.html
new file mode 100644
index 0000000..14a5f4b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents20b-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+ showSelection();
+}
+</script>
+</head>
+<body>
+<div><p>First [one</p></div>
+Second ]two
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents21-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents21-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents21-expected.html
new file mode 100644
index 0000000..a87d29f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents21-expected.html
@@ -0,0 +1,11 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>
+ <b><i>First</i></b>
+ two
+ </p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents21-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents21-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents21-input.html
new file mode 100644
index 0000000..6592c3f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents21-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<div><p><b><i>First [one</i></b></p></div>
+<div><p>Second ]two</p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents21a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents21a-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents21a-expected.html
new file mode 100644
index 0000000..a87d29f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents21a-expected.html
@@ -0,0 +1,11 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>
+ <b><i>First</i></b>
+ two
+ </p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents21a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents21a-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents21a-input.html
new file mode 100644
index 0000000..3ac270c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents21a-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<b><i>First [one</i></b>
+<div><p>Second ]two</p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents21b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents21b-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents21b-expected.html
new file mode 100644
index 0000000..a87d29f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents21b-expected.html
@@ -0,0 +1,11 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>
+ <b><i>First</i></b>
+ two
+ </p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents21b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents21b-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents21b-input.html
new file mode 100644
index 0000000..94aa41f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents21b-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<div><p><b><i>First [one</i></b></p></div>
+Second ]two
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents22-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents22-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents22-expected.html
new file mode 100644
index 0000000..533a41e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents22-expected.html
@@ -0,0 +1,15 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>
+ <b>
+ <i>
+ <u><tt>First</tt></u>
+ two
+ </i>
+ </b>
+ </p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents22-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents22-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents22-input.html
new file mode 100644
index 0000000..d75c81b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents22-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<div><p><b><i><u><tt>First [one</tt></u></i></b></p></div>
+<div><p><b><i>Second ]two</i></b></p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents22a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents22a-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents22a-expected.html
new file mode 100644
index 0000000..533a41e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents22a-expected.html
@@ -0,0 +1,15 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>
+ <b>
+ <i>
+ <u><tt>First</tt></u>
+ two
+ </i>
+ </b>
+ </p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents22a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents22a-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents22a-input.html
new file mode 100644
index 0000000..108d53d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents22a-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<b><i><u><tt>First [one</tt></u></i></b>
+<div><p><b><i>Second ]two</i></b></p></div>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents22b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents22b-expected.html b/experiments/editorFramework/test/Layer0/selection/deleteContents22b-expected.html
new file mode 100644
index 0000000..533a41e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents22b-expected.html
@@ -0,0 +1,15 @@
+<html>
+ <head></head>
+ <body>
+ <div>
+ <p>
+ <b>
+ <i>
+ <u><tt>First</tt></u>
+ two
+ </i>
+ </b>
+ </p>
+ </div>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/deleteContents22b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/deleteContents22b-input.html b/experiments/editorFramework/test/Layer0/selection/deleteContents22b-input.html
new file mode 100644
index 0000000..929f9f6
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/deleteContents22b-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_deleteContents();
+}
+</script>
+</head>
+<body>
+<div><p><b><i><u><tt>First [one</tt></u></i></b></p></div>
+<b><i>Second ]two</i></b>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-figure01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-figure01-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights-figure01-expected.html
new file mode 100644
index 0000000..a7cff4f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-figure01-expected.html
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ <style>
+figure {
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+ </style>
+ </head>
+ <body>
+ <p>
+ Text
+ <span class="uxwrite-selection">before</span>
+ </p>
+ <div class="uxwrite-selection">
+ <figure>
+ <img src="../figures/nothing.png"/>
+ <figcaption>Test figure</figcaption>
+ </figure>
+ </div>
+ <p>
+ <span class="uxwrite-selection">Text</span>
+ after
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-figure01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-figure01-input.html b/experiments/editorFramework/test/Layer0/selection/highlights-figure01-input.html
new file mode 100644
index 0000000..fc6945c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-figure01-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+figure {
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+ </style>
+<script>
+function performTest()
+{
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>Text [before</p>
+<figure>
+ <img src="../figures/nothing.png">
+ <figcaption>Test figure</figcaption>
+</figure>
+<p>Text] after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-figure02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-figure02-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights-figure02-expected.html
new file mode 100644
index 0000000..fbecf51
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-figure02-expected.html
@@ -0,0 +1,22 @@
+<html>
+ <head>
+ <style>
+figure {
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+ </style>
+ </head>
+ <body>
+ <p>
+ <span class="uxwrite-selection">T</span>
+ ext before
+ </p>
+ <figure>
+ <img src="../figures/nothing.png"/>
+ <figcaption>Test figure</figcaption>
+ </figure>
+ <p>Text after</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-figure02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-figure02-input.html b/experiments/editorFramework/test/Layer0/selection/highlights-figure02-input.html
new file mode 100644
index 0000000..4a4f6c9
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-figure02-input.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+figure {
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+ </style>
+<script>
+function performTest()
+{
+ outputOptions.keepSelectionHighlights = true;
+
+ var p = document.getElementsByTagName("P")[0];
+ var text = p.firstChild;
+ Selection_set(text,0,text,1);
+}
+</script>
+</head>
+<body>
+<p>Text [before</p>
+<figure>
+ <img src="../figures/nothing.png">
+ <figcaption>Test figure</figcaption>
+</figure>
+<p>Text] after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-table01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-table01-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights-table01-expected.html
new file mode 100644
index 0000000..c6df315
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-table01-expected.html
@@ -0,0 +1,48 @@
+<html>
+ <head>
+ <style>
+caption {
+ caption-side: bottom;
+}
+table {
+ border-collapse: collapse;
+ margin-left: auto;
+ margin-right: auto;
+}
+td > :first-child, th > :first-child {
+ margin-top: 0;
+}
+td > :last-child, th > :last-child {
+ margin-bottom: 0;
+}
+td, th {
+ border: 1px solid black;
+}
+ </style>
+ </head>
+ <body>
+ <p>
+ Text
+ <span class="uxwrite-selection">before</span>
+ </p>
+ <div class="uxwrite-selection">
+ <table width="100%">
+ <caption>Test caption</caption>
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ </tr>
+ <tr>
+ <td>Three</td>
+ <td>Four</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <p>
+ <span class="uxwrite-selection">Text</span>
+ after
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-table01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-table01-input.html b/experiments/editorFramework/test/Layer0/selection/highlights-table01-input.html
new file mode 100644
index 0000000..361dffd
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-table01-input.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+caption {
+ caption-side: bottom;
+}
+table {
+ border-collapse: collapse;
+ margin-left: auto;
+ margin-right: auto;
+}
+td > :first-child, th > :first-child {
+ margin-top: 0;
+}
+td > :last-child, th > :last-child {
+ margin-bottom: 0;
+}
+td, th {
+ border: 1px solid black;
+}
+</style>
+<script>
+function performTest()
+{
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>Text [before</p>
+<table width="100%">
+ <caption>Test caption</caption>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ </tr>
+ <tr>
+ <td>Three</td>
+ <td>Four</td>
+ </tr>
+</table>
+<p>Text] after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-table02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-table02-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights-table02-expected.html
new file mode 100644
index 0000000..5d17f3b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-table02-expected.html
@@ -0,0 +1,43 @@
+<html>
+ <head>
+ <style>
+caption {
+ caption-side: bottom;
+}
+table {
+ border-collapse: collapse;
+ margin-left: auto;
+ margin-right: auto;
+}
+td > :first-child, th > :first-child {
+ margin-top: 0;
+}
+td > :last-child, th > :last-child {
+ margin-bottom: 0;
+}
+td, th {
+ border: 1px solid black;
+}
+ </style>
+ </head>
+ <body>
+ <p>
+ <span class="uxwrite-selection">T</span>
+ ext before
+ </p>
+ <table width="100%">
+ <caption>Test caption</caption>
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ </tr>
+ <tr>
+ <td>Three</td>
+ <td>Four</td>
+ </tr>
+ </tbody>
+ </table>
+ <p>Text after</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-table02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-table02-input.html b/experiments/editorFramework/test/Layer0/selection/highlights-table02-input.html
new file mode 100644
index 0000000..6cd3545
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-table02-input.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+caption {
+ caption-side: bottom;
+}
+table {
+ border-collapse: collapse;
+ margin-left: auto;
+ margin-right: auto;
+}
+td > :first-child, th > :first-child {
+ margin-top: 0;
+}
+td > :last-child, th > :last-child {
+ margin-bottom: 0;
+}
+td, th {
+ border: 1px solid black;
+}
+</style>
+<script>
+function performTest()
+{
+ outputOptions.keepSelectionHighlights = true;
+
+ var p = document.getElementsByTagName("P")[0];
+ var text = p.firstChild;
+ Selection_set(text,0,text,1);
+}
+</script>
+</head>
+<body>
+<p>Text [before</p>
+<table width="100%">
+ <caption>Test caption</caption>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ </tr>
+ <tr>
+ <td>Three</td>
+ <td>Four</td>
+ </tr>
+</table>
+<p>Text] after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-table03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-table03-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights-table03-expected.html
new file mode 100644
index 0000000..9d7bb32
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-table03-expected.html
@@ -0,0 +1,43 @@
+<html>
+ <head>
+ <style>
+caption {
+ caption-side: bottom;
+}
+table {
+ border-collapse: collapse;
+ margin-left: auto;
+ margin-right: auto;
+}
+td > :first-child, th > :first-child {
+ margin-top: 0;
+}
+td > :last-child, th > :last-child {
+ margin-bottom: 0;
+}
+td, th {
+ border: 1px solid black;
+}
+ </style>
+ </head>
+ <body>
+ <p>Text before</p>
+ <table width="100%">
+ <caption>Test caption</caption>
+ <tbody>
+ <tr>
+ <td>
+ <span class="uxwrite-selection">O</span>
+ ne
+ </td>
+ <td>Two</td>
+ </tr>
+ <tr>
+ <td>Three</td>
+ <td>Four</td>
+ </tr>
+ </tbody>
+ </table>
+ <p>Text after</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-table03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-table03-input.html b/experiments/editorFramework/test/Layer0/selection/highlights-table03-input.html
new file mode 100644
index 0000000..80774ce
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-table03-input.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+caption {
+ caption-side: bottom;
+}
+table {
+ border-collapse: collapse;
+ margin-left: auto;
+ margin-right: auto;
+}
+td > :first-child, th > :first-child {
+ margin-top: 0;
+}
+td > :last-child, th > :last-child {
+ margin-bottom: 0;
+}
+td, th {
+ border: 1px solid black;
+}
+</style>
+<script>
+function performTest()
+{
+ outputOptions.keepSelectionHighlights = true;
+
+ var tds = document.getElementsByTagName("TD");
+ var text = tds[0].firstChild;
+ Selection_set(text,0,text,1);
+}
+</script>
+</head>
+<body>
+<p>Text [before</p>
+<table width="100%">
+ <caption>Test caption</caption>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ </tr>
+ <tr>
+ <td>Three</td>
+ <td>Four</td>
+ </tr>
+</table>
+<p>Text] after</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-toc01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-toc01-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights-toc01-expected.html
new file mode 100644
index 0000000..3fff834
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-toc01-expected.html
@@ -0,0 +1,25 @@
+<html>
+ <head>
+ <link href="../generic.css" rel="stylesheet"/>
+ </head>
+ <body>
+ <p>
+ Text
+ <span class="uxwrite-selection">before</span>
+ </p>
+ <div class="uxwrite-selection">
+ <nav class="tableofcontents">
+ <p class="toc1"><a href="#item1">First section</a></p>
+ <p class="toc1"><a href="#item2">Second section</a></p>
+ <p class="toc1"><a href="#item3">Third section</a></p>
+ </nav>
+ </div>
+ <p>
+ <span class="uxwrite-selection">Text</span>
+ after
+ </p>
+ <h1 id="item1">First section</h1>
+ <h1 id="item2">Second section</h1>
+ <h1 id="item3">Third section</h1>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-toc01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-toc01-input.html b/experiments/editorFramework/test/Layer0/selection/highlights-toc01-input.html
new file mode 100644
index 0000000..7be5644
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-toc01-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+ Outline_init();
+ PostponedActions_perform();
+
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>Text [before</p>
+<nav class="tableofcontents">
+</nav>
+<p>Text] after</p>
+<h1>First section</h1>
+<h1>Second section</h1>
+<h1>Third section</h1>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-toc02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-toc02-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights-toc02-expected.html
new file mode 100644
index 0000000..2646343
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-toc02-expected.html
@@ -0,0 +1,20 @@
+<html>
+ <head>
+ <link href="../generic.css" rel="stylesheet"/>
+ </head>
+ <body>
+ <p>
+ <span class="uxwrite-selection">T</span>
+ ext before
+ </p>
+ <nav class="tableofcontents">
+ <p class="toc1"><a href="#item1">First section</a></p>
+ <p class="toc1"><a href="#item2">Second section</a></p>
+ <p class="toc1"><a href="#item3">Third section</a></p>
+ </nav>
+ <p>Text after</p>
+ <h1 id="item1">First section</h1>
+ <h1 id="item2">Second section</h1>
+ <h1 id="item3">Third section</h1>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights-toc02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights-toc02-input.html b/experiments/editorFramework/test/Layer0/selection/highlights-toc02-input.html
new file mode 100644
index 0000000..83ba229
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights-toc02-input.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+ Outline_init();
+ PostponedActions_perform();
+
+ outputOptions.keepSelectionHighlights = true;
+
+ var p = document.getElementsByTagName("P")[0];
+ var text = p.firstChild;
+ Selection_set(text,0,text,1);
+}
+</script>
+</head>
+<body>
+<p>Text [before</p>
+<nav class="tableofcontents">
+</nav>
+<p>Text] after</p>
+<h1>First section</h1>
+<h1>Second section</h1>
+<h1>Third section</h1>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights01-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights01-expected.html
new file mode 100644
index 0000000..3e71667
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights01-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <p>First paragraph</p>
+ <p><span class="uxwrite-selection">Second paragraph</span></p>
+ <p>Third paragraph</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights01-input.html b/experiments/editorFramework/test/Layer0/selection/highlights01-input.html
new file mode 100644
index 0000000..01142b9
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights01-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_selectParagraph();
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>First paragraph</p>
+<p>Second []paragraph</p>
+<p>Third paragraph</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights02-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights02-expected.html
new file mode 100644
index 0000000..7858d05
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights02-expected.html
@@ -0,0 +1,14 @@
+<html>
+ <head></head>
+ <body>
+ <p>
+ First
+ <span class="uxwrite-selection">paragraph</span>
+ </p>
+ <p><span class="uxwrite-selection">Second paragraph</span></p>
+ <p>
+ <span class="uxwrite-selection">Third</span>
+ paragraph
+ </p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights02-input.html b/experiments/editorFramework/test/Layer0/selection/highlights02-input.html
new file mode 100644
index 0000000..c1c916a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights02-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>First[ paragraph</p>
+<p>Second paragraph</p>
+<p>Third ]paragraph</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights03-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights03-expected.html
new file mode 100644
index 0000000..e594049
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights03-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <p><span class="uxwrite-selection">First paragraph</span></p>
+ <p><span class="uxwrite-selection">Second paragraph</span></p>
+ <p><span class="uxwrite-selection">Third paragraph</span></p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights03-input.html b/experiments/editorFramework/test/Layer0/selection/highlights03-input.html
new file mode 100644
index 0000000..49a3a13
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights03-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_selectAll();
+
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>First paragraph</p>
+<p>Second paragraph</p>
+<p>Third paragraph</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights04-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights04-expected.html
new file mode 100644
index 0000000..6377969
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights04-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <p>First paragraph</p>
+ <p>Second paragraph</p>
+ <p>Third paragraph</p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights04-input.html b/experiments/editorFramework/test/Layer0/selection/highlights04-input.html
new file mode 100644
index 0000000..ab3ad9e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights04-input.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_selectAll();
+ PostponedActions_perform();
+ Clipboard_cut();
+ PostponedActions_perform();
+
+ UndoManager_undo();
+ PostponedActions_perform();
+
+ UndoManager_undo();
+ PostponedActions_perform();
+
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>First paragraph</p>
+<p>Second paragraph</p>
+<p>Third paragraph</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights05-expected.html b/experiments/editorFramework/test/Layer0/selection/highlights05-expected.html
new file mode 100644
index 0000000..8de2703
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights05-expected.html
@@ -0,0 +1,8 @@
+<html>
+ <head></head>
+ <body>
+ <p>First paragraph</p>
+ <p>Second paragraph</p>
+ <p><span class="uxwrite-selection">Third paragraph</span></p>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/highlights05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/highlights05-input.html b/experiments/editorFramework/test/Layer0/selection/highlights05-input.html
new file mode 100644
index 0000000..f4a988b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/highlights05-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+ Selection_selectAll();
+ PostponedActions_perform();
+ Clipboard_cut();
+ PostponedActions_perform();
+
+ UndoManager_undo();
+ PostponedActions_perform();
+
+ selectNode(document.getElementsByTagName("P")[2]);
+
+ outputOptions.keepSelectionHighlights = true;
+}
+</script>
+</head>
+<body>
+<p>First paragraph</p>
+<p>Second paragraph</p>
+<p>Third paragraph</p>
+</body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/positions-inner01a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/positions-inner01a-expected.html b/experiments/editorFramework/test/Layer0/selection/positions-inner01a-expected.html
new file mode 100644
index 0000000..934874a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/positions-inner01a-expected.html
@@ -0,0 +1,27 @@
+From "one [two three four] five"
+To "one two [three] four five"
+
+"|one two three four five" -> "|one " -> "|one two " -> YES/YES
+"o|ne two three four five" -> "o|ne " -> "o|ne two " -> YES/YES
+"on|e two three four five" -> "on|e " -> "on|e two " -> YES/YES
+"one| two three four five" -> "one| " -> "one| two " -> YES/YES
+"one |two three four five" -> "|two three four" -> "one |two " -> YES/YES
+"one t|wo three four five" -> "t|wo three four" -> "one t|wo " -> YES/YES
+"one tw|o three four five" -> "tw|o three four" -> "one tw|o " -> YES/YES
+"one two| three four five" -> "two| three four" -> "one two| " -> YES/YES
+"one two |three four five" -> "two |three four" -> "|three" -> YES/YES
+"one two t|hree four five" -> "two t|hree four" -> "t|hree" -> YES/YES
+"one two th|ree four five" -> "two th|ree four" -> "th|ree" -> YES/YES
+"one two thr|ee four five" -> "two thr|ee four" -> "thr|ee" -> YES/YES
+"one two thre|e four five" -> "two thre|e four" -> "thre|e" -> YES/YES
+"one two three| four five" -> "two three| four" -> "three|" -> YES/YES
+"one two three |four five" -> "two three |four" -> " |four five" -> YES/YES
+"one two three f|our five" -> "two three f|our" -> " f|our five" -> YES/YES
+"one two three fo|ur five" -> "two three fo|ur" -> " fo|ur five" -> YES/YES
+"one two three fou|r five" -> "two three fou|r" -> " fou|r five" -> YES/YES
+"one two three four| five" -> "two three four|" -> " four| five" -> YES/YES
+"one two three four |five" -> " |five" -> " four |five" -> YES/YES
+"one two three four f|ive" -> " f|ive" -> " four f|ive" -> YES/YES
+"one two three four fi|ve" -> " fi|ve" -> " four fi|ve" -> YES/YES
+"one two three four fiv|e" -> " fiv|e" -> " four fiv|e" -> YES/YES
+"one two three four five|" -> " five|" -> " four five|" -> YES/YES
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/selection/positions-inner01a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/selection/positions-inner01a-input.html b/experiments/editorFramework/test/Layer0/selection/positions-inner01a-input.html
new file mode 100644
index 0000000..6f61e7f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/selection/positions-inner01a-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="PositionTests.js"></script>
+<script>
+function performTest()
+{
+ // From "one [two three four] five"
+ // To "one two [three] four five"
+ return positionTest(4,18,8,13);
+}
+</script>
+</head>
+<body>
+<p>one two three four five</p>
+</body>
+</html>