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:24 UTC

[17/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/outline/moveSection-nested02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested02-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested02-expected.html
new file mode 100644
index 0000000..0d48cb9
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested02-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item8">1 Section 8</a></p>
+      <p class="toc2"><a href="#item9">1.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">1.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">1.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">1.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">1.2.2 Section 14</a></p>
+      <p class="toc1"><a href="#item1">2 Section 1</a></p>
+      <p class="toc2"><a href="#item2">2.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">2.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">2.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">2.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">2.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">2.2.2 Section 7</a></p>
+      <p class="toc1"><a href="#item15">3 Section 15</a></p>
+      <p class="toc2"><a href="#item16">3.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">3.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">3.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">3.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">3.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">3.2.2 Section 21</a></p>
+    </nav>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested02-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested02-input.html
new file mode 100644
index 0000000..070b72e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested02-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item1","item0","item15");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-expected.html
new file mode 100644
index 0000000..30f47f3
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item8">1 Section 8</a></p>
+      <p class="toc2"><a href="#item9">1.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">1.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">1.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">1.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">1.2.2 Section 14</a></p>
+      <p class="toc1"><a href="#item15">2 Section 15</a></p>
+      <p class="toc2"><a href="#item16">2.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">2.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">2.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">2.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">2.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">2.2.2 Section 21</a></p>
+      <p class="toc1"><a href="#item1">3 Section 1</a></p>
+      <p class="toc2"><a href="#item2">3.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">3.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">3.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">3.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">3.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">3.2.2 Section 7</a></p>
+    </nav>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-input.html
new file mode 100644
index 0000000..8dfd36d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested03-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item1","item0",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-expected.html
new file mode 100644
index 0000000..0d48cb9
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item8">1 Section 8</a></p>
+      <p class="toc2"><a href="#item9">1.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">1.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">1.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">1.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">1.2.2 Section 14</a></p>
+      <p class="toc1"><a href="#item1">2 Section 1</a></p>
+      <p class="toc2"><a href="#item2">2.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">2.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">2.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">2.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">2.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">2.2.2 Section 7</a></p>
+      <p class="toc1"><a href="#item15">3 Section 15</a></p>
+      <p class="toc2"><a href="#item16">3.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">3.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">3.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">3.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">3.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">3.2.2 Section 21</a></p>
+    </nav>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-input.html
new file mode 100644
index 0000000..947ed2b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested04-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item8","item0","item1");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-expected.html
new file mode 100644
index 0000000..f902343
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item2">1.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">1.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.2.2 Section 7</a></p>
+      <p class="toc1"><a href="#item8">2 Section 8</a></p>
+      <p class="toc2"><a href="#item9">2.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">2.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">2.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">2.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">2.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">2.2.2 Section 14</a></p>
+      <p class="toc1"><a href="#item15">3 Section 15</a></p>
+      <p class="toc2"><a href="#item16">3.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">3.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">3.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">3.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">3.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">3.2.2 Section 21</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-input.html
new file mode 100644
index 0000000..73934e7
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested05-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item8","item0","item15");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-expected.html
new file mode 100644
index 0000000..8849556
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item2">1.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">1.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.2.2 Section 7</a></p>
+      <p class="toc1"><a href="#item15">2 Section 15</a></p>
+      <p class="toc2"><a href="#item16">2.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">2.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">2.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">2.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">2.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">2.2.2 Section 21</a></p>
+      <p class="toc1"><a href="#item8">3 Section 8</a></p>
+      <p class="toc2"><a href="#item9">3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">3.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">3.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">3.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">3.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">3.2.2 Section 14</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-input.html
new file mode 100644
index 0000000..57982f0
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested06-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item8","item0",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-expected.html
new file mode 100644
index 0000000..e59f1d3
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item15">1 Section 15</a></p>
+      <p class="toc2"><a href="#item16">1.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">1.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">1.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">1.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">1.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">1.2.2 Section 21</a></p>
+      <p class="toc1"><a href="#item1">2 Section 1</a></p>
+      <p class="toc2"><a href="#item2">2.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">2.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">2.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">2.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">2.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">2.2.2 Section 7</a></p>
+      <p class="toc1"><a href="#item8">3 Section 8</a></p>
+      <p class="toc2"><a href="#item9">3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">3.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">3.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">3.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">3.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">3.2.2 Section 14</a></p>
+    </nav>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-input.html
new file mode 100644
index 0000000..f087928
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested07-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item15","item0","item1");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-expected.html
new file mode 100644
index 0000000..8849556
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item2">1.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">1.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.2.2 Section 7</a></p>
+      <p class="toc1"><a href="#item15">2 Section 15</a></p>
+      <p class="toc2"><a href="#item16">2.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">2.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">2.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">2.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">2.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">2.2.2 Section 21</a></p>
+      <p class="toc1"><a href="#item8">3 Section 8</a></p>
+      <p class="toc2"><a href="#item9">3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">3.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">3.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">3.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">3.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">3.2.2 Section 14</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-input.html
new file mode 100644
index 0000000..a0b11ce
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested08-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item15","item0","item8");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-expected.html
new file mode 100644
index 0000000..f902343
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-expected.html
@@ -0,0 +1,94 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item2">1.1 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.1.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.1.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">1.2 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.2.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.2.2 Section 7</a></p>
+      <p class="toc1"><a href="#item8">2 Section 8</a></p>
+      <p class="toc2"><a href="#item9">2.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">2.1.1 Section 10</a></p>
+      <p class="toc3"><a href="#item11">2.1.2 Section 11</a></p>
+      <p class="toc2"><a href="#item12">2.2 Section 12</a></p>
+      <p class="toc3"><a href="#item13">2.2.1 Section 13</a></p>
+      <p class="toc3"><a href="#item14">2.2.2 Section 14</a></p>
+      <p class="toc1"><a href="#item15">3 Section 15</a></p>
+      <p class="toc2"><a href="#item16">3.1 Section 16</a></p>
+      <p class="toc3"><a href="#item17">3.1.1 Section 17</a></p>
+      <p class="toc3"><a href="#item18">3.1.2 Section 18</a></p>
+      <p class="toc2"><a href="#item19">3.2 Section 19</a></p>
+      <p class="toc3"><a href="#item20">3.2.1 Section 20</a></p>
+      <p class="toc3"><a href="#item21">3.2.2 Section 21</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h3 id="item3">Section 3</h3>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h3 id="item4">Section 4</h3>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item5">Section 5</h2>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h3 id="item6">Section 6</h3>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h3 id="item7">Section 7</h3>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h1 id="item8">Section 8</h1>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item9">Section 9</h2>
+    <p>Content 9 A</p>
+    <p>Content 9 B</p>
+    <h3 id="item10">Section 10</h3>
+    <p>Content 10 A</p>
+    <p>Content 10 B</p>
+    <h3 id="item11">Section 11</h3>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h2 id="item12">Section 12</h2>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+    <h3 id="item13">Section 13</h3>
+    <p>Content 13 A</p>
+    <p>Content 13 B</p>
+    <h3 id="item14">Section 14</h3>
+    <p>Content 14 A</p>
+    <p>Content 14 B</p>
+    <h1 id="item15">Section 15</h1>
+    <p>Content 15 A</p>
+    <p>Content 15 B</p>
+    <h2 id="item16">Section 16</h2>
+    <p>Content 16 A</p>
+    <p>Content 16 B</p>
+    <h3 id="item17">Section 17</h3>
+    <p>Content 17 A</p>
+    <p>Content 17 B</p>
+    <h3 id="item18">Section 18</h3>
+    <p>Content 18 A</p>
+    <p>Content 18 B</p>
+    <h2 id="item19">Section 19</h2>
+    <p>Content 19 A</p>
+    <p>Content 19 B</p>
+    <h3 id="item20">Section 20</h3>
+    <p>Content 20 A</p>
+    <p>Content 20 B</p>
+    <h3 id="item21">Section 21</h3>
+    <p>Content 21 A</p>
+    <p>Content 21 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-input.html
new file mode 100644
index 0000000..2fc53b4
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-nested09-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([[2,2],[2,2],[2,2]]);
+
+    Outline_moveSection("item15","item0",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-expected.html
new file mode 100644
index 0000000..1fab687
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-expected.html
@@ -0,0 +1,42 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item3">1.1 Section 3</a></p>
+      <p class="toc2"><a href="#item4">1.2 Section 4</a></p>
+      <p class="toc1"><a href="#item5">2 Section 5</a></p>
+      <p class="toc2"><a href="#item2">2.1 Section 2</a></p>
+      <p class="toc2"><a href="#item6">2.2 Section 6</a></p>
+      <p class="toc2"><a href="#item7">2.3 Section 7</a></p>
+      <p class="toc2"><a href="#item8">2.4 Section 8</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item3">Section 3</h2>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h2 id="item4">Section 4</h2>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h1 id="item5">Section 5</h1>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h2 id="item6">Section 6</h2>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h2 id="item7">Section 7</h2>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-input.html
new file mode 100644
index 0000000..042e104
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent01-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([3,3]);
+
+    Outline_moveSection("item2","item5","item6");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-expected.html
new file mode 100644
index 0000000..6ce8c9f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-expected.html
@@ -0,0 +1,42 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item3">1.1 Section 3</a></p>
+      <p class="toc2"><a href="#item4">1.2 Section 4</a></p>
+      <p class="toc1"><a href="#item5">2 Section 5</a></p>
+      <p class="toc2"><a href="#item6">2.1 Section 6</a></p>
+      <p class="toc2"><a href="#item7">2.2 Section 7</a></p>
+      <p class="toc2"><a href="#item2">2.3 Section 2</a></p>
+      <p class="toc2"><a href="#item8">2.4 Section 8</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item3">Section 3</h2>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h2 id="item4">Section 4</h2>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h1 id="item5">Section 5</h1>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h2 id="item6">Section 6</h2>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h2 id="item7">Section 7</h2>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-input.html
new file mode 100644
index 0000000..a4d6de6
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent02-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([3,3]);
+
+    Outline_moveSection("item2","item5","item8");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-expected.html
new file mode 100644
index 0000000..ee72a43
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-expected.html
@@ -0,0 +1,42 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item3">1.1 Section 3</a></p>
+      <p class="toc2"><a href="#item4">1.2 Section 4</a></p>
+      <p class="toc1"><a href="#item5">2 Section 5</a></p>
+      <p class="toc2"><a href="#item6">2.1 Section 6</a></p>
+      <p class="toc2"><a href="#item7">2.2 Section 7</a></p>
+      <p class="toc2"><a href="#item8">2.3 Section 8</a></p>
+      <p class="toc2"><a href="#item2">2.4 Section 2</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item3">Section 3</h2>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h2 id="item4">Section 4</h2>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h1 id="item5">Section 5</h1>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h2 id="item6">Section 6</h2>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h2 id="item7">Section 7</h2>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-input.html
new file mode 100644
index 0000000..2562f4a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent03-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([3,3]);
+
+    Outline_moveSection("item2","item5",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-expected.html
new file mode 100644
index 0000000..92e1e8b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-expected.html
@@ -0,0 +1,42 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item2">1.1 Section 2</a></p>
+      <p class="toc2"><a href="#item4">1.2 Section 4</a></p>
+      <p class="toc1"><a href="#item5">2 Section 5</a></p>
+      <p class="toc2"><a href="#item6">2.1 Section 6</a></p>
+      <p class="toc2"><a href="#item7">2.2 Section 7</a></p>
+      <p class="toc2"><a href="#item3">2.3 Section 3</a></p>
+      <p class="toc2"><a href="#item8">2.4 Section 8</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h2 id="item4">Section 4</h2>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h1 id="item5">Section 5</h1>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h2 id="item6">Section 6</h2>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h2 id="item7">Section 7</h2>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h2 id="item3">Section 3</h2>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-input.html
new file mode 100644
index 0000000..7a5db7f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent04-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([3,3]);
+
+    Outline_moveSection("item3","item5","item8");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-expected.html
new file mode 100644
index 0000000..480e309
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-expected.html
@@ -0,0 +1,42 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc2"><a href="#item2">1.1 Section 2</a></p>
+      <p class="toc2"><a href="#item3">1.2 Section 3</a></p>
+      <p class="toc1"><a href="#item5">2 Section 5</a></p>
+      <p class="toc2"><a href="#item6">2.1 Section 6</a></p>
+      <p class="toc2"><a href="#item7">2.2 Section 7</a></p>
+      <p class="toc2"><a href="#item4">2.3 Section 4</a></p>
+      <p class="toc2"><a href="#item8">2.4 Section 8</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item2">Section 2</h2>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h2 id="item3">Section 3</h2>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h1 id="item5">Section 5</h1>
+    <p>Content 5 A</p>
+    <p>Content 5 B</p>
+    <h2 id="item6">Section 6</h2>
+    <p>Content 6 A</p>
+    <p>Content 6 B</p>
+    <h2 id="item7">Section 7</h2>
+    <p>Content 7 A</p>
+    <p>Content 7 B</p>
+    <h2 id="item4">Section 4</h2>
+    <p>Content 4 A</p>
+    <p>Content 4 B</p>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-input.html
new file mode 100644
index 0000000..19a7d12
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection-newparent05-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline([3,3]);
+
+    Outline_moveSection("item4","item5","item8");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection01-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection01-expected.html
new file mode 100644
index 0000000..1c59c8c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection01-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc1"><a href="#item2">2 Section 2</a></p>
+      <p class="toc1"><a href="#item3">3 Section 3</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection01-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection01-input.html
new file mode 100644
index 0000000..c62f03e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection01-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item1","item0","item2");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection02-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection02-expected.html
new file mode 100644
index 0000000..ddd4dad
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection02-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item2">1 Section 2</a></p>
+      <p class="toc1"><a href="#item1">2 Section 1</a></p>
+      <p class="toc1"><a href="#item3">3 Section 3</a></p>
+    </nav>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection02-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection02-input.html
new file mode 100644
index 0000000..cf444ce
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection02-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item1","item0","item3");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection03-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection03-expected.html
new file mode 100644
index 0000000..3fcbe1d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection03-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item2">1 Section 2</a></p>
+      <p class="toc1"><a href="#item3">2 Section 3</a></p>
+      <p class="toc1"><a href="#item1">3 Section 1</a></p>
+    </nav>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection03-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection03-input.html
new file mode 100644
index 0000000..93bcf4e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection03-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item1","item0",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection04-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection04-expected.html
new file mode 100644
index 0000000..ddd4dad
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection04-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item2">1 Section 2</a></p>
+      <p class="toc1"><a href="#item1">2 Section 1</a></p>
+      <p class="toc1"><a href="#item3">3 Section 3</a></p>
+    </nav>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection04-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection04-input.html
new file mode 100644
index 0000000..2271dcb
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection04-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item2","item0","item1");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection05-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection05-expected.html
new file mode 100644
index 0000000..1c59c8c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection05-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc1"><a href="#item2">2 Section 2</a></p>
+      <p class="toc1"><a href="#item3">3 Section 3</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection05-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection05-input.html
new file mode 100644
index 0000000..7be9bdb
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection05-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item2","item0","item3");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection06-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection06-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection06-expected.html
new file mode 100644
index 0000000..2fb4fbc
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection06-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc1"><a href="#item3">2 Section 3</a></p>
+      <p class="toc1"><a href="#item2">3 Section 2</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection06-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection06-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection06-input.html
new file mode 100644
index 0000000..33d2ff9
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection06-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item2","item0",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection07-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection07-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection07-expected.html
new file mode 100644
index 0000000..2cb3971
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection07-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item3">1 Section 3</a></p>
+      <p class="toc1"><a href="#item1">2 Section 1</a></p>
+      <p class="toc1"><a href="#item2">3 Section 2</a></p>
+    </nav>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection07-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection07-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection07-input.html
new file mode 100644
index 0000000..869c7c7
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection07-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item3","item0","item1");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection08-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection08-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection08-expected.html
new file mode 100644
index 0000000..2fb4fbc
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection08-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc1"><a href="#item3">2 Section 3</a></p>
+      <p class="toc1"><a href="#item2">3 Section 2</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection08-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection08-input.html
new file mode 100644
index 0000000..085c32a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection08-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item3","item0","item2");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection09-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection09-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection09-expected.html
new file mode 100644
index 0000000..1c59c8c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection09-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc1"><a href="#item2">2 Section 2</a></p>
+      <p class="toc1"><a href="#item3">3 Section 3</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+    <h1 id="item3">Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection09-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection09-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection09-input.html
new file mode 100644
index 0000000..1963112
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection09-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Outline_moveSection("item3","item0",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection10-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection10-expected.html b/experiments/editorFramework/test/Layer0/outline/moveSection10-expected.html
new file mode 100644
index 0000000..a5d6ee7
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection10-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head>
+    <style>
+    </style>
+  </head>
+  <body>
+    <nav class="tableofcontents">
+      <p class="toc1"><a href="#item1">1 Section 1</a></p>
+      <p class="toc1"><a href="#item3">2 Section 3</a></p>
+      <p class="toc1"><a href="#item2">3 Section 2</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h1 id="item3">[]Section 3</h1>
+    <p>Content 3 A</p>
+    <p>Content 3 B</p>
+    <h1 id="item2">Section 2</h1>
+    <p>Content 2 A</p>
+    <p>Content 2 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/moveSection10-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/moveSection10-input.html b/experiments/editorFramework/test/Layer0/outline/moveSection10-input.html
new file mode 100644
index 0000000..5175204
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/moveSection10-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+
+function performTest()
+{
+    setupOutlineNumbering();
+    setupOutline(3);
+
+    Selection_selectAll();
+
+    Outline_moveSection("item3",null,"item2");
+
+    Selection_preserveWhileExecuting(cleanupOutline);
+    showSelection();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-expected.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-expected.html
new file mode 100644
index 0000000..9735bee
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-expected.html
@@ -0,0 +1,45 @@
+Sections:
+Figures:
+    1 First figure (item1)
+    2 Second figure (item2)
+    Third figure (item3)
+    Fourth figure (item4)
+Tables:
+<html>
+  <head>
+  </head>
+  <body>
+    <figure id="item1">
+      <figcaption>First figure</figcaption>
+    </figure>
+    <figure id="item2">
+      <figcaption>Second figure</figcaption>
+    </figure>
+    <figure id="item3">
+      <figcaption class="Unnumbered">Third figure</figcaption>
+    </figure>
+    <figure id="item4">
+      <figcaption class="Unnumbered">Fourth figure</figcaption>
+    </figure>
+    <p>
+      First ref: Figure
+      <a href="#item1">1</a>
+    </p>
+    <p>
+      Second ref: Figure
+      <a href="#item2">2</a>
+    </p>
+    <p>
+      Third ref: Figure
+      <a href="#item3">Third figure</a>
+    </p>
+    <p>
+      Fourth ref: Figure
+      <a href="#item4">Fourth figure</a>
+    </p>
+    <p><a href="#item1">1</a></p>
+    <p><a href="#item2">2</a></p>
+    <p><a href="#item3">Third figure</a></p>
+    <p><a href="#item4">Fourth figure</a></p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-input.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-input.html
new file mode 100644
index 0000000..8b62d5f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure01-input.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var figcaptions = document.getElementsByTagName("figcaption");
+
+    // Add another set of references
+    for (var i = 0; i < figcaptions.length; i++) {
+        var a = DOM_createElement(document,"A");
+        DOM_setAttribute(a,"href","#"+figcaptions[i].parentNode.getAttribute("id"));
+        var p = DOM_createElement(document,"P");
+        DOM_appendChild(p,a);
+        DOM_appendChild(document.body,p);
+    }
+
+    PostponedActions_perform();
+
+    return Outline_plainText()+PrettyPrinter.getHTML(document.documentElement);
+}
+</script>
+</head>
+<body>
+<figure id="item1"><figcaption>Figure 9: First figure</figcaption></figure>
+<figure id="item2"><figcaption>Figure 9: Second figure</figcaption></figure>
+<figure id="item3"><figcaption>Third figure</figcaption></figure>
+<figure id="item4"><figcaption>Fourth figure</figcaption></figure>
+<p>First ref: Figure <a href="#item1"></a></p>
+<p>Second ref: Figure <a href="#item2"></a></p>
+<p>Third ref: Figure <a href="#item3"></a></p>
+<p>Fourth ref: Figure <a href="#item4"></a></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-expected.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-expected.html
new file mode 100644
index 0000000..593bc82
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-expected.html
@@ -0,0 +1,57 @@
+Sections:
+Figures:
+    1 First figureXYZ (item1)
+    2 Second figureXYZ (item2)
+    Third figureXYZ (item3)
+    Fourth figureXYZ (item4)
+Tables:
+<html>
+  <head>
+  </head>
+  <body>
+    <figure id="item1">
+      <figcaption>
+        First figure
+        XYZ
+      </figcaption>
+    </figure>
+    <figure id="item2">
+      <figcaption>
+        Second figure
+        XYZ
+      </figcaption>
+    </figure>
+    <figure id="item3">
+      <figcaption class="Unnumbered">
+        Third figure
+        XYZ
+      </figcaption>
+    </figure>
+    <figure id="item4">
+      <figcaption class="Unnumbered">
+        Fourth figure
+        XYZ
+      </figcaption>
+    </figure>
+    <p>
+      First ref: Figure
+      <a href="#item1">1</a>
+    </p>
+    <p>
+      Second ref: Figure
+      <a href="#item2">2</a>
+    </p>
+    <p>
+      Third ref: Figure
+      <a href="#item3">Third figureXYZ</a>
+    </p>
+    <p>
+      Fourth ref: Figure
+      <a href="#item4">Fourth figureXYZ</a>
+    </p>
+    <p><a href="#item1">1</a></p>
+    <p><a href="#item2">2</a></p>
+    <p><a href="#item3">Third figureXYZ</a></p>
+    <p><a href="#item4">Fourth figureXYZ</a></p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-input.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-input.html
new file mode 100644
index 0000000..2fdb7bc
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure02-input.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var figcaptions = document.getElementsByTagName("figcaption");
+
+    // Change figure caption
+    for (var i = 0; i < figcaptions.length; i++) {
+        DOM_appendChild(figcaptions[i],DOM_createTextNode(document,"XYZ"));
+    }
+
+    // Add another set of references
+    for (var i = 0; i < figcaptions.length; i++) {
+        var a = DOM_createElement(document,"A");
+        DOM_setAttribute(a,"href","#"+figcaptions[i].parentNode.getAttribute("id"));
+        var p = DOM_createElement(document,"P");
+        DOM_appendChild(p,a);
+        DOM_appendChild(document.body,p);
+    }
+
+    PostponedActions_perform();
+
+    return Outline_plainText()+PrettyPrinter.getHTML(document.documentElement);
+}
+</script>
+</head>
+<body>
+<figure id="item1"><figcaption>Figure 9: First figure</figcaption></figure>
+<figure id="item2"><figcaption>Figure 9: Second figure</figcaption></figure>
+<figure id="item3"><figcaption>Third figure</figcaption></figure>
+<figure id="item4"><figcaption>Fourth figure</figcaption></figure>
+<p>First ref: Figure <a href="#item1"></a></p>
+<p>Second ref: Figure <a href="#item2"></a></p>
+<p>Third ref: Figure <a href="#item3"></a></p>
+<p>Fourth ref: Figure <a href="#item4"></a></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-expected.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-expected.html
new file mode 100644
index 0000000..bc2d68b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-expected.html
@@ -0,0 +1,45 @@
+Sections:
+Figures:
+    1 FiXYZrst figure (item1)
+    2 SeXYZcond figure (item2)
+    ThXYZird figure (item3)
+    FoXYZurth figure (item4)
+Tables:
+<html>
+  <head>
+  </head>
+  <body>
+    <figure id="item1">
+      <figcaption>FiXYZrst figure</figcaption>
+    </figure>
+    <figure id="item2">
+      <figcaption>SeXYZcond figure</figcaption>
+    </figure>
+    <figure id="item3">
+      <figcaption class="Unnumbered">ThXYZird figure</figcaption>
+    </figure>
+    <figure id="item4">
+      <figcaption class="Unnumbered">FoXYZurth figure</figcaption>
+    </figure>
+    <p>
+      First ref: Figure
+      <a href="#item1">1</a>
+    </p>
+    <p>
+      Second ref: Figure
+      <a href="#item2">2</a>
+    </p>
+    <p>
+      Third ref: Figure
+      <a href="#item3">ThXYZird figure</a>
+    </p>
+    <p>
+      Fourth ref: Figure
+      <a href="#item4">FoXYZurth figure</a>
+    </p>
+    <p><a href="#item1">1</a></p>
+    <p><a href="#item2">2</a></p>
+    <p><a href="#item3">ThXYZird figure</a></p>
+    <p><a href="#item4">FoXYZurth figure</a></p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-input.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-input.html
new file mode 100644
index 0000000..4e9e446
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure03-input.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var figcaptions = document.getElementsByTagName("figcaption");
+
+    // Change figure caption
+    for (var i = 0; i < figcaptions.length; i++) {
+        DOM_insertCharacters(figcaptions[i].lastChild,2,"XYZ");
+    }
+
+    // Add another set of references
+    for (var i = 0; i < figcaptions.length; i++) {
+        var a = DOM_createElement(document,"A");
+        DOM_setAttribute(a,"href","#"+figcaptions[i].parentNode.getAttribute("id"));
+        var p = DOM_createElement(document,"P");
+        DOM_appendChild(p,a);
+        DOM_appendChild(document.body,p);
+    }
+
+    PostponedActions_perform();
+
+    return Outline_plainText()+PrettyPrinter.getHTML(document.documentElement);
+}
+</script>
+</head>
+<body>
+<figure id="item1"><figcaption>Figure 9: First figure</figcaption></figure>
+<figure id="item2"><figcaption>Figure 9: Second figure</figcaption></figure>
+<figure id="item3"><figcaption>Third figure</figcaption></figure>
+<figure id="item4"><figcaption>Fourth figure</figcaption></figure>
+<p>First ref: Figure <a href="#item1"></a></p>
+<p>Second ref: Figure <a href="#item2"></a></p>
+<p>Third ref: Figure <a href="#item3"></a></p>
+<p>Fourth ref: Figure <a href="#item4"></a></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-expected.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-expected.html
new file mode 100644
index 0000000..e1a3cba
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-expected.html
@@ -0,0 +1,45 @@
+Sections:
+Figures:
+    1 Fit figure (item1)
+    2 Send figure (item2)
+    Thd figure (item3)
+    Foth figure (item4)
+Tables:
+<html>
+  <head>
+  </head>
+  <body>
+    <figure id="item1">
+      <figcaption>Fit figure</figcaption>
+    </figure>
+    <figure id="item2">
+      <figcaption>Send figure</figcaption>
+    </figure>
+    <figure id="item3">
+      <figcaption class="Unnumbered">Thd figure</figcaption>
+    </figure>
+    <figure id="item4">
+      <figcaption class="Unnumbered">Foth figure</figcaption>
+    </figure>
+    <p>
+      First ref: Figure
+      <a href="#item1">1</a>
+    </p>
+    <p>
+      Second ref: Figure
+      <a href="#item2">2</a>
+    </p>
+    <p>
+      Third ref: Figure
+      <a href="#item3">Thd figure</a>
+    </p>
+    <p>
+      Fourth ref: Figure
+      <a href="#item4">Foth figure</a>
+    </p>
+    <p><a href="#item1">1</a></p>
+    <p><a href="#item2">2</a></p>
+    <p><a href="#item3">Thd figure</a></p>
+    <p><a href="#item4">Foth figure</a></p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-input.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-input.html
new file mode 100644
index 0000000..6460bdd
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure04-input.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    if (Outline_detectSectionNumbering())
+        setupOutlineNumbering();
+    PostponedActions_perform();
+
+    var figcaptions = document.getElementsByTagName("figcaption");
+
+    // Change figure caption
+    for (var i = 0; i < figcaptions.length; i++) {
+        DOM_deleteCharacters(figcaptions[i].lastChild,2,4);
+    }
+
+    // Add another set of references
+    for (var i = 0; i < figcaptions.length; i++) {
+        var a = DOM_createElement(document,"A");
+        DOM_setAttribute(a,"href","#"+figcaptions[i].parentNode.getAttribute("id"));
+        var p = DOM_createElement(document,"P");
+        DOM_appendChild(p,a);
+        DOM_appendChild(document.body,p);
+    }
+
+    PostponedActions_perform();
+
+    return Outline_plainText()+PrettyPrinter.getHTML(document.documentElement);
+}
+</script>
+</head>
+<body>
+<figure id="item1"><figcaption>Figure 9: First figure</figcaption></figure>
+<figure id="item2"><figcaption>Figure 9: Second figure</figcaption></figure>
+<figure id="item3"><figcaption>Third figure</figcaption></figure>
+<figure id="item4"><figcaption>Fourth figure</figcaption></figure>
+<p>First ref: Figure <a href="#item1"></a></p>
+<p>Second ref: Figure <a href="#item2"></a></p>
+<p>Third ref: Figure <a href="#item3"></a></p>
+<p>Fourth ref: Figure <a href="#item4"></a></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/outline/refTitle-figure05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/outline/refTitle-figure05-expected.html b/experiments/editorFramework/test/Layer0/outline/refTitle-figure05-expected.html
new file mode 100644
index 0000000..c32c9a4
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/outline/refTitle-figure05-expected.html
@@ -0,0 +1,45 @@
+Sections:
+Figures:
+    1 Figure A (item1)
+    2 Figure B (item2)
+    Figure C (item3)
+    Figure D (item4)
+Tables:
+<html>
+  <head>
+  </head>
+  <body>
+    <figure id="item1">
+      <figcaption>Figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      <figcaption>Figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      <figcaption class="Unnumbered">Figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      <figcaption class="Unnumbered">Figure D</figcaption>
+    </figure>
+    <p>
+      First ref: Figure
+      <a href="#item1">1</a>
+    </p>
+    <p>
+      Second ref: Figure
+      <a href="#item2">2</a>
+    </p>
+    <p>
+      Third ref: Figure
+      <a href="#item3">Figure C</a>
+    </p>
+    <p>
+      Fourth ref: Figure
+      <a href="#item4">Figure D</a>
+    </p>
+    <p><a href="#item1">1</a></p>
+    <p><a href="#item2">2</a></p>
+    <p><a href="#item3">Figure C</a></p>
+    <p><a href="#item4">Figure D</a></p>
+  </body>
+</html>