corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [33/51] [abbrv] [partial] incubator-corinthia git commit: added js test files
Date Fri, 14 Aug 2015 16:10:40 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-expected.html
new file mode 100644
index 0000000..8b415de
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-expected.html
@@ -0,0 +1,15 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+      <figcaption>First figure</figcaption>
+    </figure>
+    <figure id="item2">
+      <img src="nothing.png"/>
+      <figcaption/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-input.html
new file mode 100644
index 0000000..5e3aaf3
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy02-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,null);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+
+<figure>
+  <img src="nothing.png"/>
+  <figcaption>First figure[]</figcaption>
+</figure>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-expected.html
new file mode 100644
index 0000000..03529c2
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-expected.html
@@ -0,0 +1,15 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+      <figcaption>First figure</figcaption>
+    </figure>
+    <figure id="item2">
+      <img src="nothing.png"/>
+      <figcaption>Second Figure</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-input.html
new file mode 100644
index 0000000..06a0cc4
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy03-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,"Second Figure");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+
+<figure>
+  <img src="nothing.png"/>
+  <figcaption>First figure[]</figcaption>
+</figure>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-expected.html
new file mode 100644
index 0000000..a0274ea
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+      <figcaption>
+        First
+        figure
+      </figcaption>
+    </figure>
+    <figure id="item2">
+      <img src="nothing.png"/>
+      <figcaption>Second Figure</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-input.html
new file mode 100644
index 0000000..4c081db
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy04-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,"Second Figure");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+
+<figure>
+  <img src="nothing.png"/>
+  <figcaption>First []figure</figcaption>
+</figure>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-expected.html
new file mode 100644
index 0000000..03529c2
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-expected.html
@@ -0,0 +1,15 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+      <figcaption>First figure</figcaption>
+    </figure>
+    <figure id="item2">
+      <img src="nothing.png"/>
+      <figcaption>Second Figure</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-input.html
new file mode 100644
index 0000000..5b42703
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy05-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,"Second Figure");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+
+<figure>
+  <img src="nothing.png"/>
+  <figcaption>[]First figure</figcaption>
+</figure>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-expected.html
new file mode 100644
index 0000000..a1365b8
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-expected.html
@@ -0,0 +1,20 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <table id="item1" width="100%">
+      <caption>Table</caption>
+      <tbody>
+        <tr>
+          <td>Cell</td>
+          <td>Cell</td>
+        </tr>
+      </tbody>
+    </table>
+    <figure id="item2">
+      <img src="nothing.png"/>
+      <figcaption>Figure</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-input.html
new file mode 100644
index 0000000..9c70bda
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy06-input.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,"Figure");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+
+<table width="100%">
+  <caption>Table[]</caption>
+  <tr>
+    <td>Cell</td>
+    <td>Cell</td>
+  </tr>
+</table>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-expected.html
new file mode 100644
index 0000000..4668fe9
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-expected.html
@@ -0,0 +1,23 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <table id="item1" width="100%">
+      <caption>
+        Ta
+        ble
+      </caption>
+      <tbody>
+        <tr>
+          <td>Cell</td>
+          <td>Cell</td>
+        </tr>
+      </tbody>
+    </table>
+    <figure id="item2">
+      <img src="nothing.png"/>
+      <figcaption>Figure</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-input.html
new file mode 100644
index 0000000..776ed7a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy07-input.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,"Figure");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+
+<table width="100%">
+  <caption>Ta[]ble</caption>
+  <tr>
+    <td>Cell</td>
+    <td>Cell</td>
+  </tr>
+</table>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-expected.html
new file mode 100644
index 0000000..a1365b8
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-expected.html
@@ -0,0 +1,20 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <table id="item1" width="100%">
+      <caption>Table</caption>
+      <tbody>
+        <tr>
+          <td>Cell</td>
+          <td>Cell</td>
+        </tr>
+      </tbody>
+    </table>
+    <figure id="item2">
+      <img src="nothing.png"/>
+      <figcaption>Figure</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-input.html
new file mode 100644
index 0000000..71e225d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure-hierarchy08-input.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,"Figure");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+
+<table width="100%">
+  <caption>[]Table</caption>
+  <tr>
+    <td>Cell</td>
+    <td>Cell</td>
+  </tr>
+</table>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure01-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure01-expected.html
new file mode 100644
index 0000000..637519d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure01-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure01-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure01-input.html
new file mode 100644
index 0000000..a05cb6e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure01-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,false,null);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure02-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure02-expected.html
new file mode 100644
index 0000000..a26e458
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure02-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png" style="width: 60%"/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure02-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure02-input.html
new file mode 100644
index 0000000..b67d859
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure02-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png","60%",false,null);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure03-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure03-expected.html
new file mode 100644
index 0000000..2e6fa25
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure03-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+      <figcaption/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure03-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure03-input.html
new file mode 100644
index 0000000..a458cc4
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure03-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,null);
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure04-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure04-expected.html
new file mode 100644
index 0000000..9ef1998
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure04-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+      <figcaption class="Unnumbered">Sample caption</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure04-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure04-input.html
new file mode 100644
index 0000000..6662220
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure04-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,false,"Sample caption");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure05-expected.html b/experiments/editorFramework/test/Layer0/figures/insertFigure05-expected.html
new file mode 100644
index 0000000..f7ff789
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure05-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+      <figcaption>Sample caption</figcaption>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/insertFigure05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/insertFigure05-input.html b/experiments/editorFramework/test/Layer0/figures/insertFigure05-input.html
new file mode 100644
index 0000000..d54b63a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/insertFigure05-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png",null,true,"Sample caption");
+    PostponedActions_perform();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/nothing.png
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/nothing.png b/experiments/editorFramework/test/Layer0/figures/nothing.png
new file mode 100644
index 0000000..43b22cf
Binary files /dev/null and b/experiments/editorFramework/test/Layer0/figures/nothing.png differ

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties01-expected.html b/experiments/editorFramework/test/Layer0/figures/setProperties01-expected.html
new file mode 100644
index 0000000..846b467
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties01-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png" style="width: 50%"/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties01-input.html b/experiments/editorFramework/test/Layer0/figures/setProperties01-input.html
new file mode 100644
index 0000000..a29375c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties01-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png","20%",false,null);
+    PostponedActions_perform();
+
+    Figures_setProperties("item1","50%","nothing.png");
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties02-expected.html b/experiments/editorFramework/test/Layer0/figures/setProperties02-expected.html
new file mode 100644
index 0000000..637519d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties02-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="nothing.png"/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties02-input.html b/experiments/editorFramework/test/Layer0/figures/setProperties02-input.html
new file mode 100644
index 0000000..389aabc
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties02-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png","20%",false,null);
+    PostponedActions_perform();
+
+    Figures_setProperties("item1",null,"nothing.png");
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties03-expected.html b/experiments/editorFramework/test/Layer0/figures/setProperties03-expected.html
new file mode 100644
index 0000000..b781301
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties03-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img src="other.png" style="width: 20%"/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties03-input.html b/experiments/editorFramework/test/Layer0/figures/setProperties03-input.html
new file mode 100644
index 0000000..a557ed3
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties03-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png","20%",false,null);
+    PostponedActions_perform();
+
+    Figures_setProperties("item1","20%","other.png");
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties04-expected.html b/experiments/editorFramework/test/Layer0/figures/setProperties04-expected.html
new file mode 100644
index 0000000..1ce2a75
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties04-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <link href="../generic.css" rel="stylesheet"/>
+  </head>
+  <body>
+    <figure id="item1">
+      <img style="width: 20%"/>
+    </figure>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/figures/setProperties04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/figures/setProperties04-input.html b/experiments/editorFramework/test/Layer0/figures/setProperties04-input.html
new file mode 100644
index 0000000..396f8ef
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/figures/setProperties04-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="../generic.css" rel="stylesheet"/>
+<script>
+function performTest()
+{
+    Outline_init();
+    PostponedActions_perform();
+
+    Figures_insertFigure("nothing.png","20%",false,null);
+    PostponedActions_perform();
+
+    Figures_setProperties("item1","20%",null);
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames01-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames01-expected.html
new file mode 100644
index 0000000..a988afe
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames01-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <p class="test">Sample text</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames01-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames01-input.html
new file mode 100644
index 0000000..ea893dd
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames01-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges("p.test",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames02-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames02-expected.html
new file mode 100644
index 0000000..a34d57e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames02-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample text</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames02-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames02-input.html
new file mode 100644
index 0000000..81e24b1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames02-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges("table.test",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames03-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames03-expected.html
new file mode 100644
index 0000000..a34d57e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames03-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample text</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames03-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames03-input.html
new file mode 100644
index 0000000..c4ddc4d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames03-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges("article.test",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames04-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames04-expected.html
new file mode 100644
index 0000000..a988afe
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames04-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <p class="test">Sample text</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames04-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames04-input.html
new file mode 100644
index 0000000..bce6b4c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames04-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges(".test",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames05-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames05-expected.html
new file mode 100644
index 0000000..756d54b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames05-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <h2 class="test">Sample text</h2>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames05-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames05-input.html
new file mode 100644
index 0000000..e524381
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames05-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges("h2.test",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames06-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames06-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames06-expected.html
new file mode 100644
index 0000000..966e4ad
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames06-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <p>Sample text</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames06-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames06-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames06-input.html
new file mode 100644
index 0000000..348a9ab
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames06-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges("p",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames07-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames07-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames07-expected.html
new file mode 100644
index 0000000..a34d57e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames07-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample text</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames07-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames07-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames07-input.html
new file mode 100644
index 0000000..35d7627
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames07-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges("table",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames08-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames08-expected.html b/experiments/editorFramework/test/Layer0/formatting/classNames08-expected.html
new file mode 100644
index 0000000..a34d57e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames08-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <h1>Sample text</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/classNames08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/classNames08-input.html b/experiments/editorFramework/test/Layer0/formatting/classNames08-input.html
new file mode 100644
index 0000000..e14d757
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/classNames08-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges("article",null);
+}
+</script>
+</head>
+<body>
+<h1>[Sample text]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty01-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty01-expected.html
new file mode 100644
index 0000000..e459bf4
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty01-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    a
+    <i>[]</i>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty01-input.html b/experiments/editorFramework/test/Layer0/formatting/empty01-input.html
new file mode 100644
index 0000000..93170ba
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges(null,{"font-style": "italic"});
+    showSelection();
+}
+</script>
+</head>
+<body>
+a[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty02-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty02-expected.html
new file mode 100644
index 0000000..4383c73
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty02-expected.html
@@ -0,0 +1,9 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      a
+      <i>b[]</i>
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty02-input.html b/experiments/editorFramework/test/Layer0/formatting/empty02-input.html
new file mode 100644
index 0000000..7411c58
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty02-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges(null,{"font-style": "italic"});
+    Cursor_insertCharacter("b");
+    showSelection();
+}
+</script>
+</head>
+<body>
+a[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty03-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty03-expected.html
new file mode 100644
index 0000000..dff6e37
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty03-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      a
+      <i>b</i>
+      []
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty03-input.html b/experiments/editorFramework/test/Layer0/formatting/empty03-input.html
new file mode 100644
index 0000000..82f82ef
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty03-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges(null,{"font-style": "italic"});
+    Cursor_insertCharacter("b");
+    Formatting_applyFormattingChanges(null,{"font-style": null});
+    showSelection();
+}
+</script>
+</head>
+<body>
+a[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty04-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty04-expected.html
new file mode 100644
index 0000000..e80367f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty04-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      a
+      <i>b</i>
+      c[]
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty04-input.html b/experiments/editorFramework/test/Layer0/formatting/empty04-input.html
new file mode 100644
index 0000000..c374430
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty04-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges(null,{"font-style": "italic"});
+    Cursor_insertCharacter("b");
+    Formatting_applyFormattingChanges(null,{"font-style": null});
+    Cursor_insertCharacter("c");
+    showSelection();
+}
+</script>
+</head>
+<body>
+a[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty05-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty05-expected.html
new file mode 100644
index 0000000..ee0a065
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty05-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <p><b>a[]</b></p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty05-input.html b/experiments/editorFramework/test/Layer0/formatting/empty05-input.html
new file mode 100644
index 0000000..e91c136
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty05-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges(null,{"font-weight": "bold"});
+    Cursor_insertCharacter("a");
+    showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty06-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty06-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty06-expected.html
new file mode 100644
index 0000000..e673975
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty06-expected.html
@@ -0,0 +1,6 @@
+<html>
+  <head></head>
+  <body>
+    <p><b>a[]</b></p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty06-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty06-input.html b/experiments/editorFramework/test/Layer0/formatting/empty06-input.html
new file mode 100644
index 0000000..c6693fe
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty06-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Formatting_applyFormattingChanges(null,{"font-weight": "bold"});
+    Cursor_insertCharacter("a");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty07-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty07-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty07-expected.html
new file mode 100644
index 0000000..259fd6e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty07-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p><b>a[]</b></p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty07-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty07-input.html b/experiments/editorFramework/test/Layer0/formatting/empty07-input.html
new file mode 100644
index 0000000..fd58ebf
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty07-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_setUnorderedList();
+    Formatting_applyFormattingChanges(null,{"font-weight": "bold"});
+    Cursor_insertCharacter("a");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty08-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty08-expected.html b/experiments/editorFramework/test/Layer0/formatting/empty08-expected.html
new file mode 100644
index 0000000..7be8c46
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty08-expected.html
@@ -0,0 +1,7 @@
+<html>
+  <head></head>
+  <body>
+    <p style="padding-left: 80px">Test</p>
+    <p>A[]</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/empty08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/empty08-input.html b/experiments/editorFramework/test/Layer0/formatting/empty08-input.html
new file mode 100644
index 0000000..88b04e4
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/empty08-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Cursor_insertCharacter("Test");
+    Formatting_applyFormattingChanges(null,{"padding-left": "80px"});
+    Cursor_enterPressed();
+    Formatting_applyFormattingChanges(null,{"padding-left": null});
+    Cursor_insertCharacter("A");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-expected.html
new file mode 100644
index 0000000..cf47ff1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = p

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-input.html
new file mode 100644
index 0000000..222cbfa
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class01-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<p>Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-expected.html
new file mode 100644
index 0000000..820013e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = p.Something

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-input.html
new file mode 100644
index 0000000..d412a1f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class02-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<p class="Something">Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-expected.html
new file mode 100644
index 0000000..d53bd12
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = h1

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-input.html
new file mode 100644
index 0000000..6142f40
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class03-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<h1>Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-expected.html
new file mode 100644
index 0000000..3031a20
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = h1.Something

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-input.html
new file mode 100644
index 0000000..b169656
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class04-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<h1 class="Something">Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-expected.html
new file mode 100644
index 0000000..a347520
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = pre

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-input.html
new file mode 100644
index 0000000..5854952
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class05-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<pre>Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-expected.html
new file mode 100644
index 0000000..4b2540c
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = pre.Something

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-input.html
new file mode 100644
index 0000000..f0c11a1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class06-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<pre class="Something">Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-expected.html
new file mode 100644
index 0000000..da17a7b
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = blockquote

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-input.html
new file mode 100644
index 0000000..afb08be
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class07-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<blockquote>Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-expected.html
new file mode 100644
index 0000000..5146c6d
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = blockquote.Something

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-input.html
new file mode 100644
index 0000000..d252896
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-class08-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<blockquote class="Something">Text[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-expected.html
new file mode 100644
index 0000000..4bca9a2
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = __none

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-input.html
new file mode 100644
index 0000000..e9e88ab
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01a-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-expected.html
new file mode 100644
index 0000000..4bca9a2
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = __none

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-input.html
new file mode 100644
index 0000000..e97854e
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty01b-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var node = document.body;
+    DOM_deleteAllChildren(node);
+    Selection_set(node,0,node,0);
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-expected.html
new file mode 100644
index 0000000..cf47ff1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = p

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-input.html
new file mode 100644
index 0000000..b9c2755
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02a-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<p>[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-expected.html
new file mode 100644
index 0000000..cf47ff1
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = p

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-input.html
new file mode 100644
index 0000000..210917f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty02b-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var node = document.getElementsByTagName("P")[0];
+    DOM_deleteAllChildren(node);
+    Selection_set(node,0,node,0);
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<p></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-expected.html
new file mode 100644
index 0000000..d53bd12
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = h1

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-input.html
new file mode 100644
index 0000000..79b753a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03a-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<h1>[]</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-expected.html
new file mode 100644
index 0000000..d53bd12
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-expected.html
@@ -0,0 +1 @@
+-uxwrite-paragraph-style = h1

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-input.html
new file mode 100644
index 0000000..f6b5a11
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty03b-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var node = document.getElementsByTagName("H1")[0];
+    DOM_deleteAllChildren(node);
+    Selection_set(node,0,node,0);
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<h1></h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-expected.html
new file mode 100644
index 0000000..caa0e1f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-paragraph-style = __none
+font-weight = bold

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-input.html
new file mode 100644
index 0000000..8a79104
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04a-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<b>[]</b>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-expected.html
new file mode 100644
index 0000000..caa0e1f
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-paragraph-style = __none
+font-weight = bold

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-input.html
new file mode 100644
index 0000000..ad06e0a
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty04b-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var node = document.getElementsByTagName("B")[0];
+    DOM_deleteAllChildren(node);
+    Selection_set(node,0,node,0);
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<b></b>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-expected.html
new file mode 100644
index 0000000..0ee5bf0
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-paragraph-style = __none
+color = red

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-input.html
new file mode 100644
index 0000000..e964c36
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05a-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<span style="color: red">[]</span>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-expected.html
new file mode 100644
index 0000000..0ee5bf0
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-paragraph-style = __none
+color = red

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-input.html
new file mode 100644
index 0000000..bce83ad
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty05b-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var node = document.getElementsByTagName("SPAN")[0];
+    DOM_deleteAllChildren(node);
+    Selection_set(node,0,node,0);
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<span style="color: red"></span>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-expected.html
new file mode 100644
index 0000000..5bf4d75
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-paragraph-style = p
+color = red

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-input.html
new file mode 100644
index 0000000..867e041
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06a-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<p style="color: red">[]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-expected.html
new file mode 100644
index 0000000..5bf4d75
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-paragraph-style = p
+color = red

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-input.html
new file mode 100644
index 0000000..f009769
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-empty06b-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var node = document.getElementsByTagName("P")[0];
+    DOM_deleteAllChildren(node);
+    Selection_set(node,0,node,0);
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<p style="color: red"></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-expected.html
new file mode 100644
index 0000000..ee55e60
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-in-ol = true
+-uxwrite-paragraph-style = __none

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-input.html
new file mode 100644
index 0000000..079e9ad
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list01-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    DOM_deleteAllChildren(document.body);
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>[One]</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-expected.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-expected.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-expected.html
new file mode 100644
index 0000000..ee55e60
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-expected.html
@@ -0,0 +1,2 @@
+-uxwrite-in-ol = true
+-uxwrite-paragraph-style = __none

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/0633908a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-input.html
----------------------------------------------------------------------
diff --git a/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-input.html b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-input.html
new file mode 100644
index 0000000..eb2fe87
--- /dev/null
+++ b/experiments/editorFramework/test/Layer0/formatting/getFormatting-list02-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var properties = Formatting_getFormatting();
+    delete properties["-uxwrite-shift"];
+    Selection_clearSelection();
+
+    DOM_deleteAllChildren(document.body);
+
+    var lines = new Array();
+    var names = Object.getOwnPropertyNames(properties).sort();
+    for (var i = 0; i < names.length; i++)
+        lines.push(names[i]+" = "+properties[names[i]]+"\n");
+    return lines.join("");
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One[]</li>
+</ol>
+</body>
+</html>



Mime
View raw message