corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmke...@apache.org
Subject [13/92] [abbrv] [partial] incubator-corinthia git commit: Add editing code from UX Write
Date Wed, 17 Dec 2014 13:28:23 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures01-input.html b/Editor/tests/outline/listOfFigures01-input.html
new file mode 100644
index 0000000..3e22f5a
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures01-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures02-expected.html b/Editor/tests/outline/listOfFigures02-expected.html
new file mode 100644
index 0000000..73833c7
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures02-expected.html
@@ -0,0 +1,52 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test figure A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Test figure BXYZ
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test figure C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test figure D
+        </a>
+      </p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption>Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption>
+        Test figure B
+        XYZ
+      </figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption>Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption>Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures02-input.html b/Editor/tests/outline/listOfFigures02-input.html
new file mode 100644
index 0000000..81d0b70
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures02-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+
+    // Modify the second figure caption, to verify that the change is reflected in the LOF
+    var figcaption = document.getElementsByTagName("figcaption")[1];
+    DOM_appendChild(figcaption,DOM_createTextNode(document,"XYZ"));
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures03-expected.html b/Editor/tests/outline/listOfFigures03-expected.html
new file mode 100644
index 0000000..cc14ffe
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures03-expected.html
@@ -0,0 +1,49 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test figure A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          TeXYZst figure B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test figure C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test figure D
+        </a>
+      </p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption>Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption>TeXYZst figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption>Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption>Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures03-input.html b/Editor/tests/outline/listOfFigures03-input.html
new file mode 100644
index 0000000..a87177f
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures03-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+
+    // Modify the second figure caption, to verify that the change is reflected in the LOF
+    var figcaption = document.getElementsByTagName("figcaption")[1];
+    DOM_insertCharacters(figcaption.lastChild,2,"XYZ");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures04-expected.html b/Editor/tests/outline/listOfFigures04-expected.html
new file mode 100644
index 0000000..28578f1
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures04-expected.html
@@ -0,0 +1,49 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test figure A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Tegure B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test figure C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test figure D
+        </a>
+      </p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption>Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption>Tegure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption>Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption>Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures04-input.html b/Editor/tests/outline/listOfFigures04-input.html
new file mode 100644
index 0000000..99c107b
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures04-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+
+    // Modify the second figure caption, to verify that the change is reflected in the LOF
+    var figcaption = document.getElementsByTagName("figcaption")[1];
+    DOM_deleteCharacters(figcaption.lastChild,2,7);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures05-expected.html b/Editor/tests/outline/listOfFigures05-expected.html
new file mode 100644
index 0000000..34e9a8f
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures05-expected.html
@@ -0,0 +1,49 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test figure A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Test figure B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test figure C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test figure D
+        </a>
+      </p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption>Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption>Test figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption>Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption>Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures05-input.html b/Editor/tests/outline/listOfFigures05-input.html
new file mode 100644
index 0000000..f7cfb67
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures05-input.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    Outline_detectSectionNumbering();
+    PostponedActions_perform();
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+<figure>
+(figure content)
+<figcaption>Figure 9: Test figure A</figcaption>
+</figure>
+<figure>
+(figure content)
+<figcaption>Figure 9: Test figure B</figcaption>
+</figure>
+<figure>
+(figure content)
+<figcaption>Figure 9: Test figure C</figcaption>
+</figure>
+<figure>
+(figure content)
+<figcaption>Figure 9: Test figure D</figcaption>
+</figure>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures06-expected.html b/Editor/tests/outline/listOfFigures06-expected.html
new file mode 100644
index 0000000..d182840
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures06-expected.html
@@ -0,0 +1,29 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1"><a href="#item1">Test figure A</a></p>
+      <p class="toc1"><a href="#item2">Test figure B</a></p>
+      <p class="toc1"><a href="#item3">Test figure C</a></p>
+      <p class="toc1"><a href="#item4">Test figure D</a></p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures06-input.html b/Editor/tests/outline/listOfFigures06-input.html
new file mode 100644
index 0000000..77120bb
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures06-input.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    Outline_detectSectionNumbering();
+    PostponedActions_perform();
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+<figure>
+(figure content)
+<figcaption>Test figure A</figcaption>
+</figure>
+<figure>
+(figure content)
+<figcaption>Test figure B</figcaption>
+</figure>
+<figure>
+(figure content)
+<figcaption>Test figure C</figcaption>
+</figure>
+<figure>
+(figure content)
+<figcaption>Test figure D</figcaption>
+</figure>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures07-expected.html b/Editor/tests/outline/listOfFigures07-expected.html
new file mode 100644
index 0000000..d182840
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures07-expected.html
@@ -0,0 +1,29 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1"><a href="#item1">Test figure A</a></p>
+      <p class="toc1"><a href="#item2">Test figure B</a></p>
+      <p class="toc1"><a href="#item3">Test figure C</a></p>
+      <p class="toc1"><a href="#item4">Test figure D</a></p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures07-input.html b/Editor/tests/outline/listOfFigures07-input.html
new file mode 100644
index 0000000..bafd7d4
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures07-input.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Turn numbering off for all figures
+    setNumbering(false);
+    PostponedActions_perform();
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures08-expected.html b/Editor/tests/outline/listOfFigures08-expected.html
new file mode 100644
index 0000000..d182840
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures08-expected.html
@@ -0,0 +1,29 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1"><a href="#item1">Test figure A</a></p>
+      <p class="toc1"><a href="#item2">Test figure B</a></p>
+      <p class="toc1"><a href="#item3">Test figure C</a></p>
+      <p class="toc1"><a href="#item4">Test figure D</a></p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures08-input.html b/Editor/tests/outline/listOfFigures08-input.html
new file mode 100644
index 0000000..23a589a
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures08-input.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+
+    // Turn numbering off for all figures
+    setNumbering(false);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures09-expected.html b/Editor/tests/outline/listOfFigures09-expected.html
new file mode 100644
index 0000000..91189e5
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures09-expected.html
@@ -0,0 +1,39 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1"><a href="#item1">Test figure A</a></p>
+      <p class="toc1"><a href="#item2">Test figure B</a></p>
+      <p class="toc1">
+        <a href="#item3">
+          1
+          Test figure C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          2
+          Test figure D
+        </a>
+      </p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption class="Unnumbered">Test figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption>Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption>Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures09-input.html b/Editor/tests/outline/listOfFigures09-input.html
new file mode 100644
index 0000000..3016e7b
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures09-input.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Turn numbering off for all figures
+    setNumbering(false);
+    PostponedActions_perform();
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+
+    // Turn numbering on for the last two figures
+    var figcaptions = document.getElementsByTagName("figure");
+    Outline_setNumbered(figcaptions[2].getAttribute("id"),true);
+    Outline_setNumbered(figcaptions[3].getAttribute("id"),true);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures09a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures09a-expected.html b/Editor/tests/outline/listOfFigures09a-expected.html
new file mode 100644
index 0000000..34e9a8f
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures09a-expected.html
@@ -0,0 +1,49 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoffigures">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test figure A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Test figure B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test figure C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test figure D
+        </a>
+      </p>
+    </nav>
+    <figure id="item1">
+      (figure content)
+      <figcaption>Test figure A</figcaption>
+    </figure>
+    <figure id="item2">
+      (figure content)
+      <figcaption>Test figure B</figcaption>
+    </figure>
+    <figure id="item3">
+      (figure content)
+      <figcaption>Test figure C</figcaption>
+    </figure>
+    <figure id="item4">
+      (figure content)
+      <figcaption>Test figure D</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures09a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures09a-input.html b/Editor/tests/outline/listOfFigures09a-input.html
new file mode 100644
index 0000000..e1c0bc8
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures09a-input.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Turn numbering off for all figures
+    setNumbering(false);
+    PostponedActions_perform();
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+
+    // Turn numbering on for the last two figures
+    var figcaptions = document.getElementsByTagName("figure");
+    Outline_setNumbered(figcaptions[2].getAttribute("id"),true);
+    Outline_setNumbered(figcaptions[3].getAttribute("id"),true);
+    PostponedActions_perform();
+
+    // Now turn numbering on for the first two figures - the numbers for the others
+    // should be adjusted
+    Outline_setNumbered(figcaptions[0].getAttribute("id"),true);
+    Outline_setNumbered(figcaptions[1].getAttribute("id"),true);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures10-expected.html b/Editor/tests/outline/listOfFigures10-expected.html
new file mode 100644
index 0000000..3f708f6
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures10-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body><nav class="listoffigures"><p class="toc1">[No figures defined]</p></nav></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures10-input.html b/Editor/tests/outline/listOfFigures10-input.html
new file mode 100644
index 0000000..e658a51
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures10-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Add a list of figures
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures11-expected.html b/Editor/tests/outline/listOfFigures11-expected.html
new file mode 100644
index 0000000..3f708f6
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures11-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body><nav class="listoffigures"><p class="toc1">[No figures defined]</p></nav></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfFigures11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfFigures11-input.html b/Editor/tests/outline/listOfFigures11-input.html
new file mode 100644
index 0000000..ea94624
--- /dev/null
+++ b/Editor/tests/outline/listOfFigures11-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of figures
+    createTestFigures(4);
+
+    // Add a list of figures
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfFigures();
+    PostponedActions_perform();
+
+    // Delete all figures
+    var current = document.getElementsByTagName("figure")[0];
+    var next;
+    for (; current != null; current = next) {
+        next = current.nextSibling;
+        DOM_deleteNode(current);
+    }
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables01-expected.html b/Editor/tests/outline/listOfTables01-expected.html
new file mode 100644
index 0000000..d83bd48
--- /dev/null
+++ b/Editor/tests/outline/listOfTables01-expected.html
@@ -0,0 +1,53 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test table A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Test table B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test table C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test table D
+        </a>
+      </p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption>Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption>Test table B</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption>Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption>Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables01-input.html b/Editor/tests/outline/listOfTables01-input.html
new file mode 100644
index 0000000..a55383c
--- /dev/null
+++ b/Editor/tests/outline/listOfTables01-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables02-expected.html b/Editor/tests/outline/listOfTables02-expected.html
new file mode 100644
index 0000000..9372ca2
--- /dev/null
+++ b/Editor/tests/outline/listOfTables02-expected.html
@@ -0,0 +1,56 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test table A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Test table BXYZ
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test table C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test table D
+        </a>
+      </p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption>Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption>
+        Test table B
+        XYZ
+      </caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption>Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption>Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables02-input.html b/Editor/tests/outline/listOfTables02-input.html
new file mode 100644
index 0000000..c510ecc
--- /dev/null
+++ b/Editor/tests/outline/listOfTables02-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+
+    // Modify the second table caption, to verify that the change is reflected in the LOT
+    var caption = document.getElementsByTagName("caption")[1];
+    DOM_appendChild(caption,DOM_createTextNode(document,"XYZ"));
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables03-expected.html b/Editor/tests/outline/listOfTables03-expected.html
new file mode 100644
index 0000000..35b85d0
--- /dev/null
+++ b/Editor/tests/outline/listOfTables03-expected.html
@@ -0,0 +1,53 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test table A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          TeXYZst table B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test table C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test table D
+        </a>
+      </p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption>Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption>TeXYZst table B</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption>Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption>Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables03-input.html b/Editor/tests/outline/listOfTables03-input.html
new file mode 100644
index 0000000..05bdc92
--- /dev/null
+++ b/Editor/tests/outline/listOfTables03-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+
+    // Modify the second table caption, to verify that the change is reflected in the LOT
+    var caption = document.getElementsByTagName("caption")[1];
+    DOM_insertCharacters(caption.lastChild,2,"XYZ");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables04-expected.html b/Editor/tests/outline/listOfTables04-expected.html
new file mode 100644
index 0000000..51e410e
--- /dev/null
+++ b/Editor/tests/outline/listOfTables04-expected.html
@@ -0,0 +1,53 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test table A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Teble B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test table C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test table D
+        </a>
+      </p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption>Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption>Teble B</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption>Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption>Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables04-input.html b/Editor/tests/outline/listOfTables04-input.html
new file mode 100644
index 0000000..a747fd1
--- /dev/null
+++ b/Editor/tests/outline/listOfTables04-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+
+    // Modify the second table caption, to verify that the change is reflected in the LOT
+    var caption = document.getElementsByTagName("caption")[1];
+    DOM_deleteCharacters(caption.lastChild,2,7);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables05-expected.html b/Editor/tests/outline/listOfTables05-expected.html
new file mode 100644
index 0000000..28d6b4e
--- /dev/null
+++ b/Editor/tests/outline/listOfTables05-expected.html
@@ -0,0 +1,53 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test table A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Test table B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test table C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test table D
+        </a>
+      </p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption>Test table A</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption>Test table B</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption>Test table C</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption>Test table D</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables05-input.html b/Editor/tests/outline/listOfTables05-input.html
new file mode 100644
index 0000000..79bccc9
--- /dev/null
+++ b/Editor/tests/outline/listOfTables05-input.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    Outline_detectSectionNumbering();
+    PostponedActions_perform();
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+<table id="item1" style="width: 100%">
+  <caption>Table 9: Test table A</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+<table id="item2" style="width: 100%">
+  <caption>Table 9: Test table B</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+<table id="item3" style="width: 100%">
+  <caption>Table 9: Test table C</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+<table id="item4" style="width: 100%">
+  <caption>Table 9: Test table D</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables06-expected.html b/Editor/tests/outline/listOfTables06-expected.html
new file mode 100644
index 0000000..5a318f2
--- /dev/null
+++ b/Editor/tests/outline/listOfTables06-expected.html
@@ -0,0 +1,33 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1"><a href="#item1">Test table A</a></p>
+      <p class="toc1"><a href="#item2">Test table B</a></p>
+      <p class="toc1"><a href="#item3">Test table C</a></p>
+      <p class="toc1"><a href="#item4">Test table D</a></p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption class="Unnumbered">Test table A</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption class="Unnumbered">Test table B</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption class="Unnumbered">Test table C</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption class="Unnumbered">Test table D</caption>
+      <colgroup><col width="100%"/></colgroup>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables06-input.html b/Editor/tests/outline/listOfTables06-input.html
new file mode 100644
index 0000000..276b22b
--- /dev/null
+++ b/Editor/tests/outline/listOfTables06-input.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    Outline_detectSectionNumbering();
+    PostponedActions_perform();
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+<table id="item1" style="width: 100%">
+  <caption>Test table A</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+<table id="item2" style="width: 100%">
+  <caption>Test table B</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+<table id="item3" style="width: 100%">
+  <caption>Test table C</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+<table id="item4" style="width: 100%">
+  <caption>Test table D</caption>
+  <col width="100%"/>
+  <tr><td><p><br/></p></td></tr>
+</table>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables07-expected.html b/Editor/tests/outline/listOfTables07-expected.html
new file mode 100644
index 0000000..74cbb79
--- /dev/null
+++ b/Editor/tests/outline/listOfTables07-expected.html
@@ -0,0 +1,33 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1"><a href="#item1">Test table A</a></p>
+      <p class="toc1"><a href="#item2">Test table B</a></p>
+      <p class="toc1"><a href="#item3">Test table C</a></p>
+      <p class="toc1"><a href="#item4">Test table D</a></p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption class="Unnumbered">Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption class="Unnumbered">Test table B</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption class="Unnumbered">Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption class="Unnumbered">Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables07-input.html b/Editor/tests/outline/listOfTables07-input.html
new file mode 100644
index 0000000..80c4f39
--- /dev/null
+++ b/Editor/tests/outline/listOfTables07-input.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Turn numbering off for all tables
+    setNumbering(false);
+    PostponedActions_perform();
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables08-expected.html b/Editor/tests/outline/listOfTables08-expected.html
new file mode 100644
index 0000000..74cbb79
--- /dev/null
+++ b/Editor/tests/outline/listOfTables08-expected.html
@@ -0,0 +1,33 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1"><a href="#item1">Test table A</a></p>
+      <p class="toc1"><a href="#item2">Test table B</a></p>
+      <p class="toc1"><a href="#item3">Test table C</a></p>
+      <p class="toc1"><a href="#item4">Test table D</a></p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption class="Unnumbered">Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption class="Unnumbered">Test table B</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption class="Unnumbered">Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption class="Unnumbered">Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables08-input.html b/Editor/tests/outline/listOfTables08-input.html
new file mode 100644
index 0000000..13928e2
--- /dev/null
+++ b/Editor/tests/outline/listOfTables08-input.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+
+    // Turn numbering off for all tables
+    setNumbering(false);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables09-expected.html b/Editor/tests/outline/listOfTables09-expected.html
new file mode 100644
index 0000000..a65575c
--- /dev/null
+++ b/Editor/tests/outline/listOfTables09-expected.html
@@ -0,0 +1,43 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1"><a href="#item1">Test table A</a></p>
+      <p class="toc1"><a href="#item2">Test table B</a></p>
+      <p class="toc1">
+        <a href="#item3">
+          1
+          Test table C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          2
+          Test table D
+        </a>
+      </p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption class="Unnumbered">Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption class="Unnumbered">Test table B</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption>Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption>Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables09-input.html b/Editor/tests/outline/listOfTables09-input.html
new file mode 100644
index 0000000..0b32d03
--- /dev/null
+++ b/Editor/tests/outline/listOfTables09-input.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Turn numbering off for all tables
+    setNumbering(false);
+    PostponedActions_perform();
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+
+    // Turn numbering on for the last two tables
+    var tables = document.getElementsByTagName("table");
+    Outline_setNumbered(tables[2].getAttribute("id"),true);
+    Outline_setNumbered(tables[3].getAttribute("id"),true);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables09a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables09a-expected.html b/Editor/tests/outline/listOfTables09a-expected.html
new file mode 100644
index 0000000..d83bd48
--- /dev/null
+++ b/Editor/tests/outline/listOfTables09a-expected.html
@@ -0,0 +1,53 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <nav class="listoftables">
+      <p class="toc1">
+        <a href="#item1">
+          1
+          Test table A
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item2">
+          2
+          Test table B
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item3">
+          3
+          Test table C
+        </a>
+      </p>
+      <p class="toc1">
+        <a href="#item4">
+          4
+          Test table D
+        </a>
+      </p>
+    </nav>
+    <table id="item1" style="width: 100%">
+      <caption>Test table A</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item2" style="width: 100%">
+      <caption>Test table B</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item3" style="width: 100%">
+      <caption>Test table C</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+    <table id="item4" style="width: 100%">
+      <caption>Test table D</caption>
+      <col width="100%"/>
+      <tbody><tr><td><p><br/></p></td></tr></tbody>
+    </table>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables09a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables09a-input.html b/Editor/tests/outline/listOfTables09a-input.html
new file mode 100644
index 0000000..3200635
--- /dev/null
+++ b/Editor/tests/outline/listOfTables09a-input.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Turn numbering off for all tables
+    setNumbering(false);
+    PostponedActions_perform();
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+
+    // Turn numbering on for the last two tables
+    var tables = document.getElementsByTagName("table");
+    Outline_setNumbered(tables[2].getAttribute("id"),true);
+    Outline_setNumbered(tables[3].getAttribute("id"),true);
+    PostponedActions_perform();
+
+    // Now turn numbering on for the first two tables - the numbers for the others
+    // should be adjusted
+    Outline_setNumbered(tables[0].getAttribute("id"),true);
+    Outline_setNumbered(tables[1].getAttribute("id"),true);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables10-expected.html b/Editor/tests/outline/listOfTables10-expected.html
new file mode 100644
index 0000000..ae022b2
--- /dev/null
+++ b/Editor/tests/outline/listOfTables10-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body><nav class="listoftables"><p class="toc1">[No tables defined]</p></nav></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables10-input.html b/Editor/tests/outline/listOfTables10-input.html
new file mode 100644
index 0000000..3b27566
--- /dev/null
+++ b/Editor/tests/outline/listOfTables10-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Add a list of tables
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables11-expected.html b/Editor/tests/outline/listOfTables11-expected.html
new file mode 100644
index 0000000..ae022b2
--- /dev/null
+++ b/Editor/tests/outline/listOfTables11-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body><nav class="listoftables"><p class="toc1">[No tables defined]</p></nav></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/listOfTables11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/listOfTables11-input.html b/Editor/tests/outline/listOfTables11-input.html
new file mode 100644
index 0000000..01b5de2
--- /dev/null
+++ b/Editor/tests/outline/listOfTables11-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script type="text/javascript" src="OutlineTest.js"></script>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    // Create a series of tables
+    createTestTables(4);
+
+    // Add a list of tables
+    Selection_set(document.body,0,document.body,0);
+    Outline_insertListOfTables();
+    PostponedActions_perform();
+
+    // Delete all tables
+    var current = document.getElementsByTagName("table")[0];
+    var next;
+    for (; current != null; current = next) {
+        next = current.nextSibling;
+        DOM_deleteNode(current);
+    }
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner01-expected.html b/Editor/tests/outline/moveSection-inner01-expected.html
new file mode 100644
index 0000000..429b869
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner01-expected.html
@@ -0,0 +1,58 @@
+<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="toc2"><a href="#item8">1.3 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.3.2 Section 10</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</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>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <h1 id="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner01-input.html b/Editor/tests/outline/moveSection-inner01-input.html
new file mode 100644
index 0000000..0942dc9
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner01-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],0,0]);
+
+    Outline_moveSection("item2","item1","item5");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner02-expected.html b/Editor/tests/outline/moveSection-inner02-expected.html
new file mode 100644
index 0000000..d7156c0
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner02-expected.html
@@ -0,0 +1,58 @@
+<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="#item5">1.1 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.1.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.1.2 Section 7</a></p>
+      <p class="toc2"><a href="#item2">1.2 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.2.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.2.2 Section 4</a></p>
+      <p class="toc2"><a href="#item8">1.3 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.3.2 Section 10</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 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>
+    <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="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <h1 id="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner02-input.html b/Editor/tests/outline/moveSection-inner02-input.html
new file mode 100644
index 0000000..66df792
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner02-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],0,0]);
+
+    Outline_moveSection("item2","item1","item8");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner03-expected.html b/Editor/tests/outline/moveSection-inner03-expected.html
new file mode 100644
index 0000000..8bc2598
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner03-expected.html
@@ -0,0 +1,58 @@
+<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="#item5">1.1 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.1.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.1.2 Section 7</a></p>
+      <p class="toc2"><a href="#item8">1.2 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.2.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.2.2 Section 10</a></p>
+      <p class="toc2"><a href="#item2">1.3 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.3.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.3.2 Section 4</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 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>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <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>
+    <h1 id="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner03-input.html b/Editor/tests/outline/moveSection-inner03-input.html
new file mode 100644
index 0000000..57495a4
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner03-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],0,0]);
+
+    Outline_moveSection("item2","item1",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner04-expected.html b/Editor/tests/outline/moveSection-inner04-expected.html
new file mode 100644
index 0000000..d7156c0
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner04-expected.html
@@ -0,0 +1,58 @@
+<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="#item5">1.1 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.1.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.1.2 Section 7</a></p>
+      <p class="toc2"><a href="#item2">1.2 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.2.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.2.2 Section 4</a></p>
+      <p class="toc2"><a href="#item8">1.3 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.3.2 Section 10</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 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>
+    <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="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <h1 id="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner04-input.html b/Editor/tests/outline/moveSection-inner04-input.html
new file mode 100644
index 0000000..0d8a5e9
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner04-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],0,0]);
+
+    Outline_moveSection("item5","item1","item2");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner05-expected.html b/Editor/tests/outline/moveSection-inner05-expected.html
new file mode 100644
index 0000000..429b869
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner05-expected.html
@@ -0,0 +1,58 @@
+<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="toc2"><a href="#item8">1.3 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.3.2 Section 10</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</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>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <h1 id="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner05-input.html b/Editor/tests/outline/moveSection-inner05-input.html
new file mode 100644
index 0000000..67bd46b
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner05-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],0,0]);
+
+    Outline_moveSection("item5","item1","item8");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner06-expected.html b/Editor/tests/outline/moveSection-inner06-expected.html
new file mode 100644
index 0000000..4c27a51
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner06-expected.html
@@ -0,0 +1,58 @@
+<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="#item8">1.2 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.2.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.2.2 Section 10</a></p>
+      <p class="toc2"><a href="#item5">1.3 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.3.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.3.2 Section 7</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</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="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <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="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner06-input.html b/Editor/tests/outline/moveSection-inner06-input.html
new file mode 100644
index 0000000..aef8959
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner06-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],0,0]);
+
+    Outline_moveSection("item5","item1",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner07-expected.html b/Editor/tests/outline/moveSection-inner07-expected.html
new file mode 100644
index 0000000..8fbc95d
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner07-expected.html
@@ -0,0 +1,58 @@
+<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="#item8">1.1 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.1.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.1.2 Section 10</a></p>
+      <p class="toc2"><a href="#item2">1.2 Section 2</a></p>
+      <p class="toc3"><a href="#item3">1.2.1 Section 3</a></p>
+      <p class="toc3"><a href="#item4">1.2.2 Section 4</a></p>
+      <p class="toc2"><a href="#item5">1.3 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.3.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.3.2 Section 7</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</a></p>
+    </nav>
+    <h1 id="item1">Section 1</h1>
+    <p>Content 1 A</p>
+    <p>Content 1 B</p>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <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="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner07-input.html b/Editor/tests/outline/moveSection-inner07-input.html
new file mode 100644
index 0000000..90aa504
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner07-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],0,0]);
+
+    Outline_moveSection("item8","item1","item2");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner08-expected.html b/Editor/tests/outline/moveSection-inner08-expected.html
new file mode 100644
index 0000000..4c27a51
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner08-expected.html
@@ -0,0 +1,58 @@
+<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="#item8">1.2 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.2.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.2.2 Section 10</a></p>
+      <p class="toc2"><a href="#item5">1.3 Section 5</a></p>
+      <p class="toc3"><a href="#item6">1.3.1 Section 6</a></p>
+      <p class="toc3"><a href="#item7">1.3.2 Section 7</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</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="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <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="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner08-input.html b/Editor/tests/outline/moveSection-inner08-input.html
new file mode 100644
index 0000000..1b886a6
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner08-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],0,0]);
+
+    Outline_moveSection("item8","item1","item5");
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner09-expected.html b/Editor/tests/outline/moveSection-inner09-expected.html
new file mode 100644
index 0000000..429b869
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner09-expected.html
@@ -0,0 +1,58 @@
+<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="toc2"><a href="#item8">1.3 Section 8</a></p>
+      <p class="toc3"><a href="#item9">1.3.1 Section 9</a></p>
+      <p class="toc3"><a href="#item10">1.3.2 Section 10</a></p>
+      <p class="toc1"><a href="#item11">2 Section 11</a></p>
+      <p class="toc1"><a href="#item12">3 Section 12</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>
+    <h2 id="item8">Section 8</h2>
+    <p>Content 8 A</p>
+    <p>Content 8 B</p>
+    <h3 id="item9">Section 9</h3>
+    <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>
+    <h1 id="item11">Section 11</h1>
+    <p>Content 11 A</p>
+    <p>Content 11 B</p>
+    <h1 id="item12">Section 12</h1>
+    <p>Content 12 A</p>
+    <p>Content 12 B</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/outline/moveSection-inner09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/outline/moveSection-inner09-input.html b/Editor/tests/outline/moveSection-inner09-input.html
new file mode 100644
index 0000000..17882f5
--- /dev/null
+++ b/Editor/tests/outline/moveSection-inner09-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],0,0]);
+
+    Outline_moveSection("item8","item1",null);
+
+    cleanupOutline();
+}
+</script>
+</head>
+<body>
+<nav class="tableofcontents"></nav>
+</body>
+</html>


Mime
View raw message