corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmke...@apache.org
Subject [37/92] [abbrv] [partial] incubator-corinthia git commit: Add editing code from UX Write
Date Wed, 17 Dec 2014 13:28:47 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copy04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copy04-expected.html b/Editor/tests/clipboard/copy04-expected.html
new file mode 100644
index 0000000..683d985
--- /dev/null
+++ b/Editor/tests/clipboard/copy04-expected.html
@@ -0,0 +1,9 @@
+text/html
+---------
+
+<p>Sample text</p>
+
+text/plain
+----------
+
+Sample text

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copy04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copy04-input.html b/Editor/tests/clipboard/copy04-input.html
new file mode 100644
index 0000000..487a61d
--- /dev/null
+++ b/Editor/tests/clipboard/copy04-input.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    return showClipboard(Clipboard_copy());
+}
+</script>
+</head>
+<body>
+[<p>Sample text</p>]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copy05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copy05-expected.html b/Editor/tests/clipboard/copy05-expected.html
new file mode 100644
index 0000000..472c8e8
--- /dev/null
+++ b/Editor/tests/clipboard/copy05-expected.html
@@ -0,0 +1,9 @@
+text/html
+---------
+
+<b><i><u>ample</u></i></b> tex
+
+text/plain
+----------
+
+***ample*** tex

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copy05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copy05-input.html b/Editor/tests/clipboard/copy05-input.html
new file mode 100644
index 0000000..7aec3be
--- /dev/null
+++ b/Editor/tests/clipboard/copy05-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    return showClipboard(Clipboard_copy());
+}
+</script>
+</head>
+<body>
+<p><b><i><u>S[ample</u></i></b> tex]t</p>
+<p><b><i><u>Sample</u></i></b> text</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copy06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copy06-expected.html b/Editor/tests/clipboard/copy06-expected.html
new file mode 100644
index 0000000..9b65c52
--- /dev/null
+++ b/Editor/tests/clipboard/copy06-expected.html
@@ -0,0 +1,12 @@
+text/html
+---------
+
+<p><b><i><u>ample</u></i></b> text</p>
+<p><b><i><u>Sample</u></i></b> tex</p>
+
+text/plain
+----------
+
+***ample*** text
+
+***Sample*** tex

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copy06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copy06-input.html b/Editor/tests/clipboard/copy06-input.html
new file mode 100644
index 0000000..a98f4bb
--- /dev/null
+++ b/Editor/tests/clipboard/copy06-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    return showClipboard(Clipboard_copy());
+}
+</script>
+</head>
+<body>
+<p><b><i><u>S[ample</u></i></b> text</p>
+<p><b><i><u>Sample</u></i></b> tex]t</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copypaste-list01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copypaste-list01-expected.html b/Editor/tests/clipboard/copypaste-list01-expected.html
new file mode 100644
index 0000000..225eabc
--- /dev/null
+++ b/Editor/tests/clipboard/copypaste-list01-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li><p>Three</p></li>
+    </ul>
+    <p>Sample text</p>
+    <ul>
+      <li><p>Four</p></li>
+      <li><p>Five</p></li>
+      <li><p>Six</p></li>
+      <li><p>TwoX[]</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copypaste-list01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copypaste-list01-input.html b/Editor/tests/clipboard/copypaste-list01-input.html
new file mode 100644
index 0000000..dd7b6ca
--- /dev/null
+++ b/Editor/tests/clipboard/copypaste-list01-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var dest = document.getElementById("dest");
+    var clip = Clipboard_cut();
+    Selection_set(dest,dest.childNodes.length,dest,dest.childNodes.length);
+    Clipboard_pasteHTML(clip["text/html"]);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><p>[Two]</p></li>
+  <li><p>Three</p></li>
+</ul>
+<p>Sample text</p>
+<ul>
+  <li><p>Four</p></li>
+  <li><p>Five</p></li>
+  <li><p id="dest">Six</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copypaste-list02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copypaste-list02-expected.html b/Editor/tests/clipboard/copypaste-list02-expected.html
new file mode 100644
index 0000000..1f9c115
--- /dev/null
+++ b/Editor/tests/clipboard/copypaste-list02-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li><p>Three</p></li>
+    </ul>
+    <p>Sample text</p>
+    <ul>
+      <li><p>Four</p></li>
+      <li><p>Five</p></li>
+      <li><p>TwoX[]</p></li>
+      <li><p>Six</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/copypaste-list02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/copypaste-list02-input.html b/Editor/tests/clipboard/copypaste-list02-input.html
new file mode 100644
index 0000000..6c6e7dc
--- /dev/null
+++ b/Editor/tests/clipboard/copypaste-list02-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var dest = document.getElementById("dest");
+    var clip = Clipboard_cut();
+    Selection_set(dest,dest.childNodes.length,dest,dest.childNodes.length);
+    Clipboard_pasteHTML(clip["text/html"]);
+    Cursor_insertCharacter("X");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><p>[Two]</p></li>
+  <li><p>Three</p></li>
+</ul>
+<p>Sample text</p>
+<ul>
+  <li><p>Four</p></li>
+  <li><p id="dest">Five</p></li>
+  <li><p>Six</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li01-expected.html b/Editor/tests/clipboard/cut-li01-expected.html
new file mode 100644
index 0000000..5139c17
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li01-expected.html
@@ -0,0 +1,19 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>Two</li>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+<ul><li>Three</li></ul>
+
+text/plain
+----------
+
+  - Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li01-input.html b/Editor/tests/clipboard/cut-li01-input.html
new file mode 100644
index 0000000..912ecff
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li01-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>Two</li>
+  <li>[Three]</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li02-expected.html b/Editor/tests/clipboard/cut-li02-expected.html
new file mode 100644
index 0000000..b98ef02
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li02-expected.html
@@ -0,0 +1,19 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+    </ol>
+  </body>
+</html>
+
+text/html
+---------
+
+<ol><li>Three</li></ol>
+
+text/plain
+----------
+
+1.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li02-input.html b/Editor/tests/clipboard/cut-li02-input.html
new file mode 100644
index 0000000..f2f84a0
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li02-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>[Three]</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li03-expected.html b/Editor/tests/clipboard/cut-li03-expected.html
new file mode 100644
index 0000000..89e5071
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li03-expected.html
@@ -0,0 +1,20 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>Two</li>
+      <li>T</li>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+hree
+
+text/plain
+----------
+
+hree

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li03-input.html b/Editor/tests/clipboard/cut-li03-input.html
new file mode 100644
index 0000000..cb6ad8f
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li03-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>Two</li>
+  <li>T[hree]</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li04-expected.html b/Editor/tests/clipboard/cut-li04-expected.html
new file mode 100644
index 0000000..9c6c5e3
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li04-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body></body>
+</html>
+
+text/html
+---------
+
+<ul><li>One</li>
+  <li>Two</li>
+  <li>Three</li></ul>
+
+text/plain
+----------
+
+  - One
+  - Two
+  - Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li04-input.html b/Editor/tests/clipboard/cut-li04-input.html
new file mode 100644
index 0000000..b0a5ffd
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li04-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  [<li>One</li>
+  <li>Two</li>
+  <li>Three</li>]
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li05-expected.html b/Editor/tests/clipboard/cut-li05-expected.html
new file mode 100644
index 0000000..9c6c5e3
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li05-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body></body>
+</html>
+
+text/html
+---------
+
+<ul><li>One</li>
+  <li>Two</li>
+  <li>Three</li></ul>
+
+text/plain
+----------
+
+  - One
+  - Two
+  - Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li05-input.html b/Editor/tests/clipboard/cut-li05-input.html
new file mode 100644
index 0000000..ec13825
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li05-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>[One</li>
+  <li>Two</li>
+  <li>Three]</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li06-expected.html b/Editor/tests/clipboard/cut-li06-expected.html
new file mode 100644
index 0000000..b51592c
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li06-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body></body>
+</html>
+
+text/html
+---------
+
+<ul><li>One</li></ul>
+
+text/plain
+----------
+
+  - One

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li06-input.html b/Editor/tests/clipboard/cut-li06-input.html
new file mode 100644
index 0000000..51a483f
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li06-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>[One]</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li07-expected.html b/Editor/tests/clipboard/cut-li07-expected.html
new file mode 100644
index 0000000..a8b01fb
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li07-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head></head>
+  <body></body>
+</html>
+
+text/html
+---------
+
+<ul><li>
+    <ol>
+     <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </li></ul>
+
+text/plain
+----------
+
+  - 1.  One
+    2.  Two
+    3.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li07-input.html b/Editor/tests/clipboard/cut-li07-input.html
new file mode 100644
index 0000000..c1dbbd4
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li07-input.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>
+    <ol>
+     [<li>One</li>
+      <li>Two</li>
+      <li>Three</li>]
+    </ol>
+  </li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li08-expected.html b/Editor/tests/clipboard/cut-li08-expected.html
new file mode 100644
index 0000000..0aa8552
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li08-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head></head>
+  <body><ul><li>Zero</li></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li>
+    <ol>
+     <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </li></ul>
+
+text/plain
+----------
+
+  - 1.  One
+    2.  Two
+    3.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li08-input.html b/Editor/tests/clipboard/cut-li08-input.html
new file mode 100644
index 0000000..4550806
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li08-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>Zero</li>
+  <li>
+    <ol>
+     [<li>One</li>
+      <li>Two</li>
+      <li>Three</li>]
+    </ol>
+  </li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li09-expected.html b/Editor/tests/clipboard/cut-li09-expected.html
new file mode 100644
index 0000000..4ab8993
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li09-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head></head>
+  <body><ul><li>Four</li></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li>
+    <ol>
+     <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </li></ul>
+
+text/plain
+----------
+
+  - 1.  One
+    2.  Two
+    3.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li09-input.html b/Editor/tests/clipboard/cut-li09-input.html
new file mode 100644
index 0000000..6d7c136
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li09-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>
+    <ol>
+     [<li>One</li>
+      <li>Two</li>
+      <li>Three</li>]
+    </ol>
+  </li>
+  <li>Four</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li10-expected.html b/Editor/tests/clipboard/cut-li10-expected.html
new file mode 100644
index 0000000..0f3273e
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li10-expected.html
@@ -0,0 +1,27 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>Zero</li>
+      <li>Four</li>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+<ul><li>
+    <ol>
+     <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </li></ul>
+
+text/plain
+----------
+
+  - 1.  One
+    2.  Two
+    3.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li10-input.html b/Editor/tests/clipboard/cut-li10-input.html
new file mode 100644
index 0000000..c123a49
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li10-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>Zero</li>
+  <li>
+    <ol>
+     [<li>One</li>
+      <li>Two</li>
+      <li>Three</li>]
+    </ol>
+  </li>
+  <li>Four</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li11-expected.html b/Editor/tests/clipboard/cut-li11-expected.html
new file mode 100644
index 0000000..4092b56
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li11-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head></head>
+  <body><ul><li/></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li>
+    <ol>
+     <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </li></ul>
+
+text/plain
+----------
+
+  - 1.  One
+    2.  Two
+    3.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li11-input.html b/Editor/tests/clipboard/cut-li11-input.html
new file mode 100644
index 0000000..5e97532
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li11-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li></li>
+  <li>
+    <ol>
+     [<li>One</li>
+      <li>Two</li>
+      <li>Three</li>]
+    </ol>
+  </li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li12-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li12-expected.html b/Editor/tests/clipboard/cut-li12-expected.html
new file mode 100644
index 0000000..4092b56
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li12-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head></head>
+  <body><ul><li/></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li>
+    <ol>
+     <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </li></ul>
+
+text/plain
+----------
+
+  - 1.  One
+    2.  Two
+    3.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li12-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li12-input.html b/Editor/tests/clipboard/cut-li12-input.html
new file mode 100644
index 0000000..9f21e85
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li12-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>
+    <ol>
+     [<li>One</li>
+      <li>Two</li>
+      <li>Three</li>]
+    </ol>
+  </li>
+  <li></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li13-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li13-expected.html b/Editor/tests/clipboard/cut-li13-expected.html
new file mode 100644
index 0000000..a4dcc84
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li13-expected.html
@@ -0,0 +1,27 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li/>
+      <li/>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+<ul><li>
+    <ol>
+     <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+    </ol>
+  </li></ul>
+
+text/plain
+----------
+
+  - 1.  One
+    2.  Two
+    3.  Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li13-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li13-input.html b/Editor/tests/clipboard/cut-li13-input.html
new file mode 100644
index 0000000..ca776b2
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li13-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li></li>
+  <li>
+    <ol>
+     [<li>One</li>
+      <li>Two</li>
+      <li>Three</li>]
+    </ol>
+  </li>
+  <li></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li14-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li14-expected.html b/Editor/tests/clipboard/cut-li14-expected.html
new file mode 100644
index 0000000..d40944a
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li14-expected.html
@@ -0,0 +1,19 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>[]Three</li>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+<ul><li>Two</li></ul>
+
+text/plain
+----------
+
+  - Two

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li14-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li14-input.html b/Editor/tests/clipboard/cut-li14-input.html
new file mode 100644
index 0000000..779a18c
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li14-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>[Two]</li>
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li14a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li14a-expected.html b/Editor/tests/clipboard/cut-li14a-expected.html
new file mode 100644
index 0000000..50d6eac
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li14a-expected.html
@@ -0,0 +1,19 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li><p>[]Three</p></li>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+<ul><li><p>Two</p></li></ul>
+
+text/plain
+----------
+
+  - Two

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li14a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li14a-input.html b/Editor/tests/clipboard/cut-li14a-input.html
new file mode 100644
index 0000000..e4b9e67
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li14a-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><p>[Two]</p></li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li15-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li15-expected.html b/Editor/tests/clipboard/cut-li15-expected.html
new file mode 100644
index 0000000..833d862
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li15-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body><ul><li>One[]</li></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li>Two</li>
+  <li>Three</li></ul>
+
+text/plain
+----------
+
+  - Two
+  - Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li15-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li15-input.html b/Editor/tests/clipboard/cut-li15-input.html
new file mode 100644
index 0000000..11ceb4a
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li15-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>[Two</li>
+  <li>Three]</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li15a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li15a-expected.html b/Editor/tests/clipboard/cut-li15a-expected.html
new file mode 100644
index 0000000..e7b87a1
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li15a-expected.html
@@ -0,0 +1,17 @@
+<html>
+  <head></head>
+  <body><ul><li><p>One[]</p></li></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li><p>Two</p></li>
+  <li><p>Three</p></li></ul>
+
+text/plain
+----------
+
+  - Two
+
+  - Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li15a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li15a-input.html b/Editor/tests/clipboard/cut-li15a-input.html
new file mode 100644
index 0000000..99eca68
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li15a-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><p>[Two</p></li>
+  <li><p>Three]</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li16-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li16-expected.html b/Editor/tests/clipboard/cut-li16-expected.html
new file mode 100644
index 0000000..2737ea3
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li16-expected.html
@@ -0,0 +1,16 @@
+<html>
+  <head></head>
+  <body><ul><li>[]Three</li></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li>One</li>
+  <li>Two</li></ul>
+
+text/plain
+----------
+
+  - One
+  - Two

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li16-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li16-input.html b/Editor/tests/clipboard/cut-li16-input.html
new file mode 100644
index 0000000..fc235a6
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li16-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>[One</li>
+  <li>Two]</li>
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li16a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li16a-expected.html b/Editor/tests/clipboard/cut-li16a-expected.html
new file mode 100644
index 0000000..98e3e0a
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li16a-expected.html
@@ -0,0 +1,17 @@
+<html>
+  <head></head>
+  <body><ul><li><p>[]Three</p></li></ul></body>
+</html>
+
+text/html
+---------
+
+<ul><li><p>One</p></li>
+  <li><p>Two</p></li></ul>
+
+text/plain
+----------
+
+  - One
+
+  - Two

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li16a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li16a-input.html b/Editor/tests/clipboard/cut-li16a-input.html
new file mode 100644
index 0000000..2d9b585
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li16a-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>[One</p></li>
+  <li><p>Two]</p></li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li17-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li17-expected.html b/Editor/tests/clipboard/cut-li17-expected.html
new file mode 100644
index 0000000..af90fca
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li17-expected.html
@@ -0,0 +1,21 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One[]</li>
+      <li>Four</li>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+<ul><li>Two</li>
+  <li>Three</li></ul>
+
+text/plain
+----------
+
+  - Two
+  - Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li17-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li17-input.html b/Editor/tests/clipboard/cut-li17-input.html
new file mode 100644
index 0000000..29a6e93
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li17-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>[Two</li>
+  <li>Three]</li>
+  <li>Four</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li17a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li17a-expected.html b/Editor/tests/clipboard/cut-li17a-expected.html
new file mode 100644
index 0000000..f8dec50
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li17a-expected.html
@@ -0,0 +1,22 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One[]</p></li>
+      <li><p>Four</p></li>
+    </ul>
+  </body>
+</html>
+
+text/html
+---------
+
+<ul><li><p>Two</p></li>
+  <li><p>Three</p></li></ul>
+
+text/plain
+----------
+
+  - Two
+
+  - Three

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-li17a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-li17a-input.html b/Editor/tests/clipboard/cut-li17a-input.html
new file mode 100644
index 0000000..79a3f4d
--- /dev/null
+++ b/Editor/tests/clipboard/cut-li17a-input.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><p>[Two</p></li>
+  <li><p>Three]</p></li>
+  <li><p>Four</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-td01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-td01-expected.html b/Editor/tests/clipboard/cut-td01-expected.html
new file mode 100644
index 0000000..729e14a
--- /dev/null
+++ b/Editor/tests/clipboard/cut-td01-expected.html
@@ -0,0 +1,27 @@
+<html>
+  <head></head>
+  <body>
+    <table>
+      <tbody>
+        <tr>
+          <td>[]</td>
+          <td>Two</td>
+        </tr>
+        <tr>
+          <td>Three</td>
+          <td>Four</td>
+        </tr>
+      </tbody>
+    </table>
+  </body>
+</html>
+
+text/html
+---------
+
+One
+
+text/plain
+----------
+
+One

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-td01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-td01-input.html b/Editor/tests/clipboard/cut-td01-input.html
new file mode 100644
index 0000000..d6a9e1c
--- /dev/null
+++ b/Editor/tests/clipboard/cut-td01-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<table>
+  <tr>
+    <td>[One]</td>
+    <td>Two</td>
+  </tr>
+  <tr>
+    <td>Three</td>
+    <td>Four</td>
+  </tr>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-td01a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-td01a-expected.html b/Editor/tests/clipboard/cut-td01a-expected.html
new file mode 100644
index 0000000..e786be5
--- /dev/null
+++ b/Editor/tests/clipboard/cut-td01a-expected.html
@@ -0,0 +1,32 @@
+<html>
+  <head></head>
+  <body>
+    <table>
+      <tbody>
+        <tr>
+          <td>
+            <p>
+              []
+              <br/>
+            </p>
+          </td>
+          <td><p>Two</p></td>
+        </tr>
+        <tr>
+          <td><p>Three</p></td>
+          <td><p>Four</p></td>
+        </tr>
+      </tbody>
+    </table>
+  </body>
+</html>
+
+text/html
+---------
+
+One
+
+text/plain
+----------
+
+One

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/cut-td01a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/cut-td01a-input.html b/Editor/tests/clipboard/cut-td01a-input.html
new file mode 100644
index 0000000..85730db
--- /dev/null
+++ b/Editor/tests/clipboard/cut-td01a-input.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var clip = Clipboard_cut();
+    showSelection();
+    var html = PrettyPrinter.getHTML(document.documentElement);
+    return html+"\n"+showClipboard(clip);
+}
+</script>
+</head>
+<body>
+<table>
+  <tr>
+    <td><p>[One]</p></td>
+    <td><p>Two</p></td>
+  </tr>
+  <tr>
+    <td><p>Three</p></td>
+    <td><p>Four</p></td>
+  </tr>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-dupIds01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-dupIds01-expected.html b/Editor/tests/clipboard/paste-dupIds01-expected.html
new file mode 100644
index 0000000..ebe91b5
--- /dev/null
+++ b/Editor/tests/clipboard/paste-dupIds01-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <p id="test">one</p>
+    <p>two</p>
+    <p>three[]</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-dupIds01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-dupIds01-input.html b/Editor/tests/clipboard/paste-dupIds01-input.html
new file mode 100644
index 0000000..03f0327
--- /dev/null
+++ b/Editor/tests/clipboard/paste-dupIds01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<p id='test'>one</p><p id='test'>two</p><p id='test'>three</p>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[]<br/></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-dupIds02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-dupIds02-expected.html b/Editor/tests/clipboard/paste-dupIds02-expected.html
new file mode 100644
index 0000000..bcea4cb
--- /dev/null
+++ b/Editor/tests/clipboard/paste-dupIds02-expected.html
@@ -0,0 +1,9 @@
+<html>
+  <head></head>
+  <body>
+    <p id="test">start</p>
+    <p>one</p>
+    <p>two</p>
+    <p>three[]</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-dupIds02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-dupIds02-input.html b/Editor/tests/clipboard/paste-dupIds02-input.html
new file mode 100644
index 0000000..9fe5d92
--- /dev/null
+++ b/Editor/tests/clipboard/paste-dupIds02-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<p id='test'>one</p><p id='test'>two</p><p id='test'>three</p>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="test">start</p>
+<p>[]<br/></p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-dupIds03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-dupIds03-expected.html b/Editor/tests/clipboard/paste-dupIds03-expected.html
new file mode 100644
index 0000000..20d6cb1
--- /dev/null
+++ b/Editor/tests/clipboard/paste-dupIds03-expected.html
@@ -0,0 +1,9 @@
+<html>
+  <head></head>
+  <body>
+    <p>one</p>
+    <p>two</p>
+    <p>three[]</p>
+    <p id="test">end</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-dupIds03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-dupIds03-input.html b/Editor/tests/clipboard/paste-dupIds03-input.html
new file mode 100644
index 0000000..c6d4968
--- /dev/null
+++ b/Editor/tests/clipboard/paste-dupIds03-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<p id='test'>one</p><p id='test'>two</p><p id='test'>three</p>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[]<br/></p>
+<p id="test">end</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-htmldoc01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-htmldoc01-expected.html b/Editor/tests/clipboard/paste-htmldoc01-expected.html
new file mode 100644
index 0000000..d5446e7
--- /dev/null
+++ b/Editor/tests/clipboard/paste-htmldoc01-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body><div class="page" title="Page 1">[]</div></body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-htmldoc01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-htmldoc01-input.html b/Editor/tests/clipboard/paste-htmldoc01-input.html
new file mode 100644
index 0000000..ae36e01
--- /dev/null
+++ b/Editor/tests/clipboard/paste-htmldoc01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n\t\t<title></title>\n\t</head>\n\t<body>\n\t\t<div class=\"page\" title=\"Page 1\">\n\t\t\t\n\t\t</div>\n\t</body>\n</html>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-htmldoc02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-htmldoc02-expected.html b/Editor/tests/clipboard/paste-htmldoc02-expected.html
new file mode 100644
index 0000000..e3a4d99
--- /dev/null
+++ b/Editor/tests/clipboard/paste-htmldoc02-expected.html
@@ -0,0 +1,4 @@
+<html>
+  <head></head>
+  <body>[]</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-htmldoc02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-htmldoc02-input.html b/Editor/tests/clipboard/paste-htmldoc02-input.html
new file mode 100644
index 0000000..581a5c8
--- /dev/null
+++ b/Editor/tests/clipboard/paste-htmldoc02-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("    ");
+    showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid01-expected.html b/Editor/tests/clipboard/paste-invalid01-expected.html
new file mode 100644
index 0000000..d7249a4
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid01-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <p id="p1" z="1">Before</p>
+    <p>test[]</p>
+    <p z="1">After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid01-input.html b/Editor/tests/clipboard/paste-invalid01-input.html
new file mode 100644
index 0000000..93de5e2
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid01-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<p>test</p>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="p1" z="1">Before[]After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid02-expected.html b/Editor/tests/clipboard/paste-invalid02-expected.html
new file mode 100644
index 0000000..220d0d5
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid02-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <p id="p1" z="1">Before</p>
+    <h1>test[]</h1>
+    <p z="1">After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid02-input.html b/Editor/tests/clipboard/paste-invalid02-input.html
new file mode 100644
index 0000000..4d98c96
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid02-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<h1>test</h1>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="p1" z="1">Before[]After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid03-expected.html b/Editor/tests/clipboard/paste-invalid03-expected.html
new file mode 100644
index 0000000..8766587
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid03-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <h1 id="h11" z="1">Before</h1>
+    <p>test[]</p>
+    <h1 z="1">After</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid03-input.html b/Editor/tests/clipboard/paste-invalid03-input.html
new file mode 100644
index 0000000..f6aacd6
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid03-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<p>test</p>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1 id="h11" z="1">Before[]After</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid04-expected.html b/Editor/tests/clipboard/paste-invalid04-expected.html
new file mode 100644
index 0000000..3614113
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid04-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <h1 id="h11" z="1">Before</h1>
+    <h1>test[]</h1>
+    <h1 z="1">After</h1>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid04-input.html b/Editor/tests/clipboard/paste-invalid04-input.html
new file mode 100644
index 0000000..4fd0911
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid04-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<h1>test</h1>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<h1 id="h11" z="1">Before[]After</h1>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid05-expected.html b/Editor/tests/clipboard/paste-invalid05-expected.html
new file mode 100644
index 0000000..f1addae
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid05-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <b id="b1" z="1">Before</b>
+    <p><b z="1">test[]</b></p>
+    <b z="1">After</b>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid05-input.html b/Editor/tests/clipboard/paste-invalid05-input.html
new file mode 100644
index 0000000..bbb8188
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid05-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<p>test</p>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<b id="b1" z="1">Before[]After</b>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid06-expected.html b/Editor/tests/clipboard/paste-invalid06-expected.html
new file mode 100644
index 0000000..9067048
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid06-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <b id="b1" z="1"><i id="i1" z="2"><u id="u1" z="3">Before</u></i></b>
+    <p><b z="1"><i z="2"><u z="3">test[]</u></i></b></p>
+    <b z="1"><i z="2"><u z="3">After</u></i></b>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid06-input.html b/Editor/tests/clipboard/paste-invalid06-input.html
new file mode 100644
index 0000000..663ff9b
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid06-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<p>test</p>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<b id="b1" z="1"><i id="i1" z="2"><u id="u1" z="3">Before[]After</u></i></b>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid07-expected.html b/Editor/tests/clipboard/paste-invalid07-expected.html
new file mode 100644
index 0000000..3e9f6a3
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid07-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <p id="p1" z="1">Before</p>
+    <ul>
+      <li>One</li>
+      <li>Two</li>
+      <li>Three[]</li>
+    </ul>
+    <p z="1">After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid07-input.html b/Editor/tests/clipboard/paste-invalid07-input.html
new file mode 100644
index 0000000..8f0d8cd
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid07-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<ul><li>One</li><li>Two</li><li>Three</li></ul>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="p1" z="1">Before[]After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid08-expected.html b/Editor/tests/clipboard/paste-invalid08-expected.html
new file mode 100644
index 0000000..d23fea9
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid08-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <p id="p1" z="1">Before</p>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>Three[]</li>
+    </ol>
+    <p z="1">After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid08-input.html b/Editor/tests/clipboard/paste-invalid08-input.html
new file mode 100644
index 0000000..6c7a5fe
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid08-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<ol><li>One</li><li>Two</li><li>Three</li></ol>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="p1" z="1">Before[]After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid09-expected.html b/Editor/tests/clipboard/paste-invalid09-expected.html
new file mode 100644
index 0000000..3e9f6a3
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid09-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <p id="p1" z="1">Before</p>
+    <ul>
+      <li>One</li>
+      <li>Two</li>
+      <li>Three[]</li>
+    </ul>
+    <p z="1">After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid09-input.html b/Editor/tests/clipboard/paste-invalid09-input.html
new file mode 100644
index 0000000..8b1c1e2
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid09-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<li>One</li><li>Two</li><li>Three</li>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="p1" z="1">Before[]After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid10-expected.html b/Editor/tests/clipboard/paste-invalid10-expected.html
new file mode 100644
index 0000000..d000049
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid10-expected.html
@@ -0,0 +1,8 @@
+<html>
+  <head></head>
+  <body>
+    <p id="p1" z="1">Before</p>
+    <table><tbody><tr><td>Table[]</td></tr></tbody></table>
+    <p z="1">After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-invalid10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-invalid10-input.html b/Editor/tests/clipboard/paste-invalid10-input.html
new file mode 100644
index 0000000..d0a3541
--- /dev/null
+++ b/Editor/tests/clipboard/paste-invalid10-input.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<table><tr><td>Table</td></tr></table>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p id="p1" z="1">Before[]After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li01-expected.html b/Editor/tests/clipboard/paste-li01-expected.html
new file mode 100644
index 0000000..4df509f
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li01-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>BeforeSTART</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]After</li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li01-input.html b/Editor/tests/clipboard/paste-li01-input.html
new file mode 100644
index 0000000..907c6a3
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li01-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "<ul>"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "</ul>"+
+                        "MIDDLE"+
+                        "<ul>"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "</ul>"+
+                        "END"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>Before[Two]After</li>
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li02-expected.html b/Editor/tests/clipboard/paste-li02-expected.html
new file mode 100644
index 0000000..4df509f
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li02-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>BeforeSTART</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]After</li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li02-input.html b/Editor/tests/clipboard/paste-li02-input.html
new file mode 100644
index 0000000..7742265
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li02-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "MIDDLE"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "END"
+                        );
+   showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>Before[Two]After</li>
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li03-expected.html b/Editor/tests/clipboard/paste-li03-expected.html
new file mode 100644
index 0000000..e2c4c43
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li03-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>START</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]</li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li03-input.html b/Editor/tests/clipboard/paste-li03-input.html
new file mode 100644
index 0000000..33ca8f6
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li03-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "<ul>"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "</ul>"+
+                        "MIDDLE"+
+                        "<ul>"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "</ul>"+
+                        "END"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>[Two]</li>
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li04-expected.html b/Editor/tests/clipboard/paste-li04-expected.html
new file mode 100644
index 0000000..e2c4c43
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li04-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>START</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]</li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li04-input.html b/Editor/tests/clipboard/paste-li04-input.html
new file mode 100644
index 0000000..6222b40
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li04-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "MIDDLE"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "END"
+                        );
+   showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  <li>[Two]</li>
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li05-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li05-expected.html b/Editor/tests/clipboard/paste-li05-expected.html
new file mode 100644
index 0000000..e2c4c43
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li05-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>START</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]</li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li05-input.html b/Editor/tests/clipboard/paste-li05-input.html
new file mode 100644
index 0000000..d9f0c6c
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li05-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "<ul>"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "</ul>"+
+                        "MIDDLE"+
+                        "<ul>"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "</ul>"+
+                        "END"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  [<li>Two</li>]
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li06-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li06-expected.html b/Editor/tests/clipboard/paste-li06-expected.html
new file mode 100644
index 0000000..e2c4c43
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li06-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>START</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]</li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li06-input.html b/Editor/tests/clipboard/paste-li06-input.html
new file mode 100644
index 0000000..6f8974d
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li06-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "MIDDLE"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "END"
+                        );
+   showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  [<li>Two</li>]
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li07-expected.html b/Editor/tests/clipboard/paste-li07-expected.html
new file mode 100644
index 0000000..98b998e
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li07-expected.html
@@ -0,0 +1,30 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>
+        ST
+        <u>AR</u>
+        T
+      </li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>
+        MI
+        <u>DD</u>
+        LE
+      </li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>
+        E
+        <u>N</u>
+        D[]
+      </li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li07-input.html b/Editor/tests/clipboard/paste-li07-input.html
new file mode 100644
index 0000000..267ce2f
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li07-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "ST<u>AR</u>T"+
+                        "<ul>"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "</ul>"+
+                        "MI<u>DD</u>LE"+
+                        "<ul>"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "</ul>"+
+                        "E<u>N</u>D"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  [<li>Two</li>]
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li08-expected.html b/Editor/tests/clipboard/paste-li08-expected.html
new file mode 100644
index 0000000..98b998e
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li08-expected.html
@@ -0,0 +1,30 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>
+        ST
+        <u>AR</u>
+        T
+      </li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>
+        MI
+        <u>DD</u>
+        LE
+      </li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>
+        E
+        <u>N</u>
+        D[]
+      </li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li08-input.html b/Editor/tests/clipboard/paste-li08-input.html
new file mode 100644
index 0000000..879753d
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li08-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "ST<u>AR</u>T"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "MI<u>DD</u>LE"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "E<u>N</u>D"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li>One</li>
+  [<li>Two</li>]
+  <li>Three</li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li09-expected.html b/Editor/tests/clipboard/paste-li09-expected.html
new file mode 100644
index 0000000..52b67d9
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li09-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li><p>START</p></li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li><p>MIDDLE</p></li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li><p>END[]</p></li>
+      <li><p>Three</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li09-input.html b/Editor/tests/clipboard/paste-li09-input.html
new file mode 100644
index 0000000..9893272
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li09-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "<ul>"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "</ul>"+
+                        "MIDDLE"+
+                        "<ul>"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "</ul>"+
+                        "END"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><p>[Two]</p></li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li10-expected.html b/Editor/tests/clipboard/paste-li10-expected.html
new file mode 100644
index 0000000..52b67d9
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li10-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li><p>START</p></li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li><p>MIDDLE</p></li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li><p>END[]</p></li>
+      <li><p>Three</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li10-input.html b/Editor/tests/clipboard/paste-li10-input.html
new file mode 100644
index 0000000..d05c861
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li10-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "MIDDLE"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "END"
+                        );
+   showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><p>[Two]</p></li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li11-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li11-expected.html b/Editor/tests/clipboard/paste-li11-expected.html
new file mode 100644
index 0000000..4cb1823
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li11-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li>BeforeSTART</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]After</li>
+      <li><p>Three</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li11-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li11-input.html b/Editor/tests/clipboard/paste-li11-input.html
new file mode 100644
index 0000000..560a1f8
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li11-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "<ul>"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "</ul>"+
+                        "MIDDLE"+
+                        "<ul>"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "</ul>"+
+                        "END"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li>Before[Two]After</li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li12-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li12-expected.html b/Editor/tests/clipboard/paste-li12-expected.html
new file mode 100644
index 0000000..4cb1823
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li12-expected.html
@@ -0,0 +1,18 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li>BeforeSTART</li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>END[]After</li>
+      <li><p>Three</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li12-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li12-input.html b/Editor/tests/clipboard/paste-li12-input.html
new file mode 100644
index 0000000..2e5f772
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li12-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "MIDDLE"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "END"
+                        );
+   showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li>Before[Two]After</li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li13-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li13-expected.html b/Editor/tests/clipboard/paste-li13-expected.html
new file mode 100644
index 0000000..e77ca5c
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li13-expected.html
@@ -0,0 +1,26 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li>
+        <b>bold</b>
+        <i>italic</i>
+        START
+      </li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>
+        END[]
+        <u>underline</u>
+        <code>code</code>
+      </li>
+      <li><p>Three</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li13-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li13-input.html b/Editor/tests/clipboard/paste-li13-input.html
new file mode 100644
index 0000000..6cac403
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li13-input.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "<ul>"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "</ul>"+
+                        "MIDDLE"+
+                        "<ul>"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "</ul>"+
+                        "END"
+                        );
+    showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><b>bold</b><i>italic</i>[Two]<u>underline</u><code>code</code></li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li14-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li14-expected.html b/Editor/tests/clipboard/paste-li14-expected.html
new file mode 100644
index 0000000..e77ca5c
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li14-expected.html
@@ -0,0 +1,26 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li><p>One</p></li>
+      <li>
+        <b>bold</b>
+        <i>italic</i>
+        START
+      </li>
+      <li>AAA</li>
+      <li>BBB</li>
+      <li>CCC</li>
+      <li>MIDDLE</li>
+      <li>DDD</li>
+      <li>EEE</li>
+      <li>FFF</li>
+      <li>
+        END[]
+        <u>underline</u>
+        <code>code</code>
+      </li>
+      <li><p>Three</p></li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-li14-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-li14-input.html b/Editor/tests/clipboard/paste-li14-input.html
new file mode 100644
index 0000000..8be78cb
--- /dev/null
+++ b/Editor/tests/clipboard/paste-li14-input.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML(
+                        "START"+
+                        "  <li>AAA</li>"+
+                        "  <li>BBB</li>"+
+                        "  <li>CCC</li>"+
+                        "MIDDLE"+
+                        "  <li>DDD</li>"+
+                        "  <li>EEE</li>"+
+                        "  <li>FFF</li>"+
+                        "END"
+                        );
+   showSelection();
+}
+</script>
+</head>
+<body>
+<ul>
+  <li><p>One</p></li>
+  <li><b>bold</b><i>italic</i>[Two]<u>underline</u><code>code</code></li>
+  <li><p>Three</p></li>
+</ul>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-list01-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-list01-expected.html b/Editor/tests/clipboard/paste-list01-expected.html
new file mode 100644
index 0000000..c326ce8
--- /dev/null
+++ b/Editor/tests/clipboard/paste-list01-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>First</li>
+      <li>Second</li>
+      <li>Third[]</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-list01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-list01-input.html b/Editor/tests/clipboard/paste-list01-input.html
new file mode 100644
index 0000000..7ce5ba5
--- /dev/null
+++ b/Editor/tests/clipboard/paste-list01-input.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<ul>"+
+                        "  <li>First</li>"+
+                        "  <li>Second</li>"+
+                        "  <li>Third</li>"+
+                        "</ul>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-list02-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-list02-expected.html b/Editor/tests/clipboard/paste-list02-expected.html
new file mode 100644
index 0000000..c326ce8
--- /dev/null
+++ b/Editor/tests/clipboard/paste-list02-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>First</li>
+      <li>Second</li>
+      <li>Third[]</li>
+    </ul>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-list02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-list02-input.html b/Editor/tests/clipboard/paste-list02-input.html
new file mode 100644
index 0000000..09ad21a
--- /dev/null
+++ b/Editor/tests/clipboard/paste-list02-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Clipboard_pasteHTML("<li>First</li>"+
+                        "<li>Second</li>"+
+                        "<li>Third</li>");
+    showSelection();
+}
+</script>
+</head>
+<body>
+[]
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/clipboard/paste-list03-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/clipboard/paste-list03-expected.html b/Editor/tests/clipboard/paste-list03-expected.html
new file mode 100644
index 0000000..d531810
--- /dev/null
+++ b/Editor/tests/clipboard/paste-list03-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <ul>
+      <li>One</li>
+      <li>First</li>
+      <li>Second</li>
+      <li>Third[]</li>
+      <li>Three</li>
+    </ul>
+  </body>
+</html>


Mime
View raw message