corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmke...@apache.org
Subject [18/92] [abbrv] [partial] incubator-corinthia git commit: Add editing code from UX Write
Date Wed, 17 Dec 2014 13:28:28 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-line-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-line-backward-expected.html b/Editor/tests/input/positionToBoundary-line-backward-expected.html
new file mode 100644
index 0000000..cb120aa
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-line-backward-expected.html
@@ -0,0 +1,40 @@
+"|one two three four five six seven eight" -- "|one two three four five six seven eight"
+"o|ne two three four five six seven eight" -- "|one two three four five six seven eight"
+"on|e two three four five six seven eight" -- "|one two three four five six seven eight"
+"one| two three four five six seven eight" -- "|one two three four five six seven eight"
+"one |two three four five six seven eight" -- "|one two three four five six seven eight"
+"one t|wo three four five six seven eight" -- "|one two three four five six seven eight"
+"one tw|o three four five six seven eight" -- "|one two three four five six seven eight"
+"one two| three four five six seven eight" -- "|one two three four five six seven eight"
+"one two |three four five six seven eight" -- "one two |three four five six seven eight"
+"one two t|hree four five six seven eight" -- "one two |three four five six seven eight"
+"one two th|ree four five six seven eight" -- "one two |three four five six seven eight"
+"one two thr|ee four five six seven eight" -- "one two |three four five six seven eight"
+"one two thre|e four five six seven eight" -- "one two |three four five six seven eight"
+"one two three| four five six seven eight" -- "one two |three four five six seven eight"
+"one two three |four five six seven eight" -- "one two |three four five six seven eight"
+"one two three f|our five six seven eight" -- "one two |three four five six seven eight"
+"one two three fo|ur five six seven eight" -- "one two |three four five six seven eight"
+"one two three fou|r five six seven eight" -- "one two |three four five six seven eight"
+"one two three four| five six seven eight" -- "one two |three four five six seven eight"
+"one two three four |five six seven eight" -- "one two three four |five six seven eight"
+"one two three four f|ive six seven eight" -- "one two three four |five six seven eight"
+"one two three four fi|ve six seven eight" -- "one two three four |five six seven eight"
+"one two three four fiv|e six seven eight" -- "one two three four |five six seven eight"
+"one two three four five| six seven eight" -- "one two three four |five six seven eight"
+"one two three four five |six seven eight" -- "one two three four |five six seven eight"
+"one two three four five s|ix seven eight" -- "one two three four |five six seven eight"
+"one two three four five si|x seven eight" -- "one two three four |five six seven eight"
+"one two three four five six| seven eight" -- "one two three four |five six seven eight"
+"one two three four five six |seven eight" -- "one two three four five six |seven eight"
+"one two three four five six s|even eight" -- "one two three four five six |seven eight"
+"one two three four five six se|ven eight" -- "one two three four five six |seven eight"
+"one two three four five six sev|en eight" -- "one two three four five six |seven eight"
+"one two three four five six seve|n eight" -- "one two three four five six |seven eight"
+"one two three four five six seven| eight" -- "one two three four five six |seven eight"
+"one two three four five six seven |eight" -- "one two three four five six |seven eight"
+"one two three four five six seven e|ight" -- "one two three four five six |seven eight"
+"one two three four five six seven ei|ght" -- "one two three four five six |seven eight"
+"one two three four five six seven eig|ht" -- "one two three four five six |seven eight"
+"one two three four five six seven eigh|t" -- "one two three four five six |seven eight"
+"one two three four five six seven eight|" -- "one two three four five six |seven eight"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-line-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-line-backward-input.html b/Editor/tests/input/positionToBoundary-line-backward-input.html
new file mode 100644
index 0000000..be724bf
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-line-backward-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+p { border: 1px solid red;
+font-size: 20px;
+font-family: monospace;
+width: 150px; }
+</style>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionToBoundary("line","backward");
+}
+</script>
+</head>
+<body>
+
+<p>one two three four five six seven eight</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-line-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-line-forward-expected.html b/Editor/tests/input/positionToBoundary-line-forward-expected.html
new file mode 100644
index 0000000..100c724
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-line-forward-expected.html
@@ -0,0 +1,40 @@
+"|one two three four five six seven eight" -- "one two| three four five six seven eight"
+"o|ne two three four five six seven eight" -- "one two| three four five six seven eight"
+"on|e two three four five six seven eight" -- "one two| three four five six seven eight"
+"one| two three four five six seven eight" -- "one two| three four five six seven eight"
+"one |two three four five six seven eight" -- "one two| three four five six seven eight"
+"one t|wo three four five six seven eight" -- "one two| three four five six seven eight"
+"one tw|o three four five six seven eight" -- "one two| three four five six seven eight"
+"one two| three four five six seven eight" -- "one two| three four five six seven eight"
+"one two |three four five six seven eight" -- "one two three four| five six seven eight"
+"one two t|hree four five six seven eight" -- "one two three four| five six seven eight"
+"one two th|ree four five six seven eight" -- "one two three four| five six seven eight"
+"one two thr|ee four five six seven eight" -- "one two three four| five six seven eight"
+"one two thre|e four five six seven eight" -- "one two three four| five six seven eight"
+"one two three| four five six seven eight" -- "one two three four| five six seven eight"
+"one two three |four five six seven eight" -- "one two three four| five six seven eight"
+"one two three f|our five six seven eight" -- "one two three four| five six seven eight"
+"one two three fo|ur five six seven eight" -- "one two three four| five six seven eight"
+"one two three fou|r five six seven eight" -- "one two three four| five six seven eight"
+"one two three four| five six seven eight" -- "one two three four| five six seven eight"
+"one two three four |five six seven eight" -- "one two three four five six| seven eight"
+"one two three four f|ive six seven eight" -- "one two three four five six| seven eight"
+"one two three four fi|ve six seven eight" -- "one two three four five six| seven eight"
+"one two three four fiv|e six seven eight" -- "one two three four five six| seven eight"
+"one two three four five| six seven eight" -- "one two three four five six| seven eight"
+"one two three four five |six seven eight" -- "one two three four five six| seven eight"
+"one two three four five s|ix seven eight" -- "one two three four five six| seven eight"
+"one two three four five si|x seven eight" -- "one two three four five six| seven eight"
+"one two three four five six| seven eight" -- "one two three four five six| seven eight"
+"one two three four five six |seven eight" -- "one two three four five six seven eight|"
+"one two three four five six s|even eight" -- "one two three four five six seven eight|"
+"one two three four five six se|ven eight" -- "one two three four five six seven eight|"
+"one two three four five six sev|en eight" -- "one two three four five six seven eight|"
+"one two three four five six seve|n eight" -- "one two three four five six seven eight|"
+"one two three four five six seven| eight" -- "one two three four five six seven eight|"
+"one two three four five six seven |eight" -- "one two three four five six seven eight|"
+"one two three four five six seven e|ight" -- "one two three four five six seven eight|"
+"one two three four five six seven ei|ght" -- "one two three four five six seven eight|"
+"one two three four five six seven eig|ht" -- "one two three four five six seven eight|"
+"one two three four five six seven eigh|t" -- "one two three four five six seven eight|"
+"one two three four five six seven eight|" -- "one two three four five six seven eight|"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-line-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-line-forward-input.html b/Editor/tests/input/positionToBoundary-line-forward-input.html
new file mode 100644
index 0000000..c92d5e6
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-line-forward-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+p { border: 1px solid red;
+font-size: 20px;
+font-family: monospace;
+width: 150px; }
+</style>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionToBoundary("line","forward");
+}
+</script>
+</head>
+<body>
+
+<p>one two three four five six seven eight</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-paragraph-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-paragraph-backward-expected.html b/Editor/tests/input/positionToBoundary-paragraph-backward-expected.html
new file mode 100644
index 0000000..840a8f2
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-paragraph-backward-expected.html
@@ -0,0 +1,28 @@
+"|one two three four five six" -- "|one two three four five six"
+"o|ne two three four five six" -- "|one two three four five six"
+"on|e two three four five six" -- "|one two three four five six"
+"one| two three four five six" -- "|one two three four five six"
+"one |two three four five six" -- "|one two three four five six"
+"one t|wo three four five six" -- "|one two three four five six"
+"one tw|o three four five six" -- "|one two three four five six"
+"one two| three four five six" -- "|one two three four five six"
+"one two |three four five six" -- "one two| three four five six"
+"one two t|hree four five six" -- "one two |three four five six"
+"one two th|ree four five six" -- "one two |three four five six"
+"one two thr|ee four five six" -- "one two |three four five six"
+"one two thre|e four five six" -- "one two |three four five six"
+"one two three| four five six" -- "one two |three four five six"
+"one two three |four five six" -- "one two |three four five six"
+"one two three f|our five six" -- "one two |three four five six"
+"one two three fo|ur five six" -- "one two |three four five six"
+"one two three fou|r five six" -- "one two |three four five six"
+"one two three four| five six" -- "one two |three four five six"
+"one two three four |five six" -- "one two three four| five six"
+"one two three four f|ive six" -- "one two three four |five six"
+"one two three four fi|ve six" -- "one two three four |five six"
+"one two three four fiv|e six" -- "one two three four |five six"
+"one two three four five| six" -- "one two three four |five six"
+"one two three four five |six" -- "one two three four |five six"
+"one two three four five s|ix" -- "one two three four |five six"
+"one two three four five si|x" -- "one two three four |five six"
+"one two three four five six|" -- "one two three four |five six"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-paragraph-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-paragraph-backward-input.html b/Editor/tests/input/positionToBoundary-paragraph-backward-input.html
new file mode 100644
index 0000000..54252b3
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-paragraph-backward-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionToBoundary("paragraph","backward");
+}
+</script>
+</head>
+<body>
+
+<p>one two</p>
+
+<p>three four</p>
+
+<p>five six</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-paragraph-forward-backward.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-paragraph-forward-backward.html b/Editor/tests/input/positionToBoundary-paragraph-forward-backward.html
new file mode 100644
index 0000000..5700f6f
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-paragraph-forward-backward.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionToBoundary("paragraph","backward");
+}
+</script>
+</head>
+<body>
+
+<p>One two. Three, four - five</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-paragraph-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-paragraph-forward-expected.html b/Editor/tests/input/positionToBoundary-paragraph-forward-expected.html
new file mode 100644
index 0000000..3f33d40
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-paragraph-forward-expected.html
@@ -0,0 +1,28 @@
+"|one two three four five six" -- "one two| three four five six"
+"o|ne two three four five six" -- "one two| three four five six"
+"on|e two three four five six" -- "one two| three four five six"
+"one| two three four five six" -- "one two| three four five six"
+"one |two three four five six" -- "one two| three four five six"
+"one t|wo three four five six" -- "one two| three four five six"
+"one tw|o three four five six" -- "one two| three four five six"
+"one two| three four five six" -- "one two |three four five six"
+"one two |three four five six" -- "one two three four| five six"
+"one two t|hree four five six" -- "one two three four| five six"
+"one two th|ree four five six" -- "one two three four| five six"
+"one two thr|ee four five six" -- "one two three four| five six"
+"one two thre|e four five six" -- "one two three four| five six"
+"one two three| four five six" -- "one two three four| five six"
+"one two three |four five six" -- "one two three four| five six"
+"one two three f|our five six" -- "one two three four| five six"
+"one two three fo|ur five six" -- "one two three four| five six"
+"one two three fou|r five six" -- "one two three four| five six"
+"one two three four| five six" -- "one two three four |five six"
+"one two three four |five six" -- "one two three four five six|"
+"one two three four f|ive six" -- "one two three four five six|"
+"one two three four fi|ve six" -- "one two three four five six|"
+"one two three four fiv|e six" -- "one two three four five six|"
+"one two three four five| six" -- "one two three four five six|"
+"one two three four five |six" -- "one two three four five six|"
+"one two three four five s|ix" -- "one two three four five six|"
+"one two three four five si|x" -- "one two three four five six|"
+"one two three four five six|" -- "one two three four five six|"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-paragraph-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-paragraph-forward-input.html b/Editor/tests/input/positionToBoundary-paragraph-forward-input.html
new file mode 100644
index 0000000..9e80717
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-paragraph-forward-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionToBoundary("paragraph","forward");
+}
+</script>
+</head>
+<body>
+
+<p>one two</p>
+
+<p>three four</p>
+
+<p>five six</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-word-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-word-backward-expected.html b/Editor/tests/input/positionToBoundary-word-backward-expected.html
new file mode 100644
index 0000000..ba8a246
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-word-backward-expected.html
@@ -0,0 +1,28 @@
+"|One two. Three, four - five" -- "|One two. Three, four - five"
+"O|ne two. Three, four - five" -- "|One two. Three, four - five"
+"On|e two. Three, four - five" -- "|One two. Three, four - five"
+"One| two. Three, four - five" -- "|One two. Three, four - five"
+"One |two. Three, four - five" -- "One| two. Three, four - five"
+"One t|wo. Three, four - five" -- "One |two. Three, four - five"
+"One tw|o. Three, four - five" -- "One |two. Three, four - five"
+"One two|. Three, four - five" -- "One |two. Three, four - five"
+"One two.| Three, four - five" -- "One two|. Three, four - five"
+"One two. |Three, four - five" -- "One two|. Three, four - five"
+"One two. T|hree, four - five" -- "One two. |Three, four - five"
+"One two. Th|ree, four - five" -- "One two. |Three, four - five"
+"One two. Thr|ee, four - five" -- "One two. |Three, four - five"
+"One two. Thre|e, four - five" -- "One two. |Three, four - five"
+"One two. Three|, four - five" -- "One two. |Three, four - five"
+"One two. Three,| four - five" -- "One two. Three|, four - five"
+"One two. Three, |four - five" -- "One two. Three|, four - five"
+"One two. Three, f|our - five" -- "One two. Three, |four - five"
+"One two. Three, fo|ur - five" -- "One two. Three, |four - five"
+"One two. Three, fou|r - five" -- "One two. Three, |four - five"
+"One two. Three, four| - five" -- "One two. Three, |four - five"
+"One two. Three, four |- five" -- "One two. Three, four| - five"
+"One two. Three, four -| five" -- "One two. Three, four| - five"
+"One two. Three, four - |five" -- "One two. Three, four| - five"
+"One two. Three, four - f|ive" -- "One two. Three, four - |five"
+"One two. Three, four - fi|ve" -- "One two. Three, four - |five"
+"One two. Three, four - fiv|e" -- "One two. Three, four - |five"
+"One two. Three, four - five|" -- "One two. Three, four - |five"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-word-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-word-backward-input.html b/Editor/tests/input/positionToBoundary-word-backward-input.html
new file mode 100644
index 0000000..e77d83c
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-word-backward-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionToBoundary("word","backward");
+}
+</script>
+</head>
+<body>
+
+<p>One two. Three, four - five</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-word-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-word-forward-expected.html b/Editor/tests/input/positionToBoundary-word-forward-expected.html
new file mode 100644
index 0000000..dd822ba
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-word-forward-expected.html
@@ -0,0 +1,28 @@
+"|One two. Three, four - five" -- "One| two. Three, four - five"
+"O|ne two. Three, four - five" -- "One| two. Three, four - five"
+"On|e two. Three, four - five" -- "One| two. Three, four - five"
+"One| two. Three, four - five" -- "One |two. Three, four - five"
+"One |two. Three, four - five" -- "One two|. Three, four - five"
+"One t|wo. Three, four - five" -- "One two|. Three, four - five"
+"One tw|o. Three, four - five" -- "One two|. Three, four - five"
+"One two|. Three, four - five" -- "One two. |Three, four - five"
+"One two.| Three, four - five" -- "One two. |Three, four - five"
+"One two. |Three, four - five" -- "One two. Three|, four - five"
+"One two. T|hree, four - five" -- "One two. Three|, four - five"
+"One two. Th|ree, four - five" -- "One two. Three|, four - five"
+"One two. Thr|ee, four - five" -- "One two. Three|, four - five"
+"One two. Thre|e, four - five" -- "One two. Three|, four - five"
+"One two. Three|, four - five" -- "One two. Three, |four - five"
+"One two. Three,| four - five" -- "One two. Three, |four - five"
+"One two. Three, |four - five" -- "One two. Three, four| - five"
+"One two. Three, f|our - five" -- "One two. Three, four| - five"
+"One two. Three, fo|ur - five" -- "One two. Three, four| - five"
+"One two. Three, fou|r - five" -- "One two. Three, four| - five"
+"One two. Three, four| - five" -- "One two. Three, four - |five"
+"One two. Three, four |- five" -- "One two. Three, four - |five"
+"One two. Three, four -| five" -- "One two. Three, four - |five"
+"One two. Three, four - |five" -- "One two. Three, four - five|"
+"One two. Three, four - f|ive" -- "One two. Three, four - five|"
+"One two. Three, four - fi|ve" -- "One two. Three, four - five|"
+"One two. Three, four - fiv|e" -- "One two. Three, four - five|"
+"One two. Three, four - five|" -- "One two. Three, four - five|"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionToBoundary-word-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionToBoundary-word-forward-input.html b/Editor/tests/input/positionToBoundary-word-forward-input.html
new file mode 100644
index 0000000..422ac33
--- /dev/null
+++ b/Editor/tests/input/positionToBoundary-word-forward-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionToBoundary("word","forward");
+}
+</script>
+</head>
+<body>
+
+<p>One two. Three, four - five</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-line-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-line-backward-expected.html b/Editor/tests/input/positionWithin-line-backward-expected.html
new file mode 100644
index 0000000..174058c
--- /dev/null
+++ b/Editor/tests/input/positionWithin-line-backward-expected.html
@@ -0,0 +1,40 @@
+"|one two three four five six seven eight" -- false
+"o|ne two three four five six seven eight" -- true
+"on|e two three four five six seven eight" -- true
+"one| two three four five six seven eight" -- true
+"one |two three four five six seven eight" -- true
+"one t|wo three four five six seven eight" -- true
+"one tw|o three four five six seven eight" -- true
+"one two| three four five six seven eight" -- true
+"one two |three four five six seven eight" -- false
+"one two t|hree four five six seven eight" -- true
+"one two th|ree four five six seven eight" -- true
+"one two thr|ee four five six seven eight" -- true
+"one two thre|e four five six seven eight" -- true
+"one two three| four five six seven eight" -- true
+"one two three |four five six seven eight" -- true
+"one two three f|our five six seven eight" -- true
+"one two three fo|ur five six seven eight" -- true
+"one two three fou|r five six seven eight" -- true
+"one two three four| five six seven eight" -- true
+"one two three four |five six seven eight" -- false
+"one two three four f|ive six seven eight" -- true
+"one two three four fi|ve six seven eight" -- true
+"one two three four fiv|e six seven eight" -- true
+"one two three four five| six seven eight" -- true
+"one two three four five |six seven eight" -- true
+"one two three four five s|ix seven eight" -- true
+"one two three four five si|x seven eight" -- true
+"one two three four five six| seven eight" -- true
+"one two three four five six |seven eight" -- false
+"one two three four five six s|even eight" -- true
+"one two three four five six se|ven eight" -- true
+"one two three four five six sev|en eight" -- true
+"one two three four five six seve|n eight" -- true
+"one two three four five six seven| eight" -- true
+"one two three four five six seven |eight" -- true
+"one two three four five six seven e|ight" -- true
+"one two three four five six seven ei|ght" -- true
+"one two three four five six seven eig|ht" -- true
+"one two three four five six seven eigh|t" -- true
+"one two three four five six seven eight|" -- true

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-line-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-line-backward-input.html b/Editor/tests/input/positionWithin-line-backward-input.html
new file mode 100644
index 0000000..650ece8
--- /dev/null
+++ b/Editor/tests/input/positionWithin-line-backward-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+p { border: 1px solid red;
+font-size: 20px;
+font-family: monospace;
+width: 150px; }
+</style>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionWithin("line","backward");
+}
+</script>
+</head>
+<body>
+
+<p>one two three four five six seven eight</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-line-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-line-forward-expected.html b/Editor/tests/input/positionWithin-line-forward-expected.html
new file mode 100644
index 0000000..37124f1
--- /dev/null
+++ b/Editor/tests/input/positionWithin-line-forward-expected.html
@@ -0,0 +1,40 @@
+"|one two three four five six seven eight" -- true
+"o|ne two three four five six seven eight" -- true
+"on|e two three four five six seven eight" -- true
+"one| two three four five six seven eight" -- true
+"one |two three four five six seven eight" -- true
+"one t|wo three four five six seven eight" -- true
+"one tw|o three four five six seven eight" -- true
+"one two| three four five six seven eight" -- false
+"one two |three four five six seven eight" -- true
+"one two t|hree four five six seven eight" -- true
+"one two th|ree four five six seven eight" -- true
+"one two thr|ee four five six seven eight" -- true
+"one two thre|e four five six seven eight" -- true
+"one two three| four five six seven eight" -- true
+"one two three |four five six seven eight" -- true
+"one two three f|our five six seven eight" -- true
+"one two three fo|ur five six seven eight" -- true
+"one two three fou|r five six seven eight" -- true
+"one two three four| five six seven eight" -- false
+"one two three four |five six seven eight" -- true
+"one two three four f|ive six seven eight" -- true
+"one two three four fi|ve six seven eight" -- true
+"one two three four fiv|e six seven eight" -- true
+"one two three four five| six seven eight" -- true
+"one two three four five |six seven eight" -- true
+"one two three four five s|ix seven eight" -- true
+"one two three four five si|x seven eight" -- true
+"one two three four five six| seven eight" -- false
+"one two three four five six |seven eight" -- true
+"one two three four five six s|even eight" -- true
+"one two three four five six se|ven eight" -- true
+"one two three four five six sev|en eight" -- true
+"one two three four five six seve|n eight" -- true
+"one two three four five six seven| eight" -- true
+"one two three four five six seven |eight" -- true
+"one two three four five six seven e|ight" -- true
+"one two three four five six seven ei|ght" -- true
+"one two three four five six seven eig|ht" -- true
+"one two three four five six seven eigh|t" -- true
+"one two three four five six seven eight|" -- false

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-line-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-line-forward-input.html b/Editor/tests/input/positionWithin-line-forward-input.html
new file mode 100644
index 0000000..22e9227
--- /dev/null
+++ b/Editor/tests/input/positionWithin-line-forward-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+p { border: 1px solid red;
+font-size: 20px;
+font-family: monospace;
+width: 150px; }
+</style>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionWithin("line","forward");
+}
+</script>
+</head>
+<body>
+
+<p>one two three four five six seven eight</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-paragraph-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-paragraph-backward-expected.html b/Editor/tests/input/positionWithin-paragraph-backward-expected.html
new file mode 100644
index 0000000..8a1833b
--- /dev/null
+++ b/Editor/tests/input/positionWithin-paragraph-backward-expected.html
@@ -0,0 +1,28 @@
+"|one two three four five six" -- false
+"o|ne two three four five six" -- true
+"on|e two three four five six" -- true
+"one| two three four five six" -- true
+"one |two three four five six" -- true
+"one t|wo three four five six" -- true
+"one tw|o three four five six" -- true
+"one two| three four five six" -- true
+"one two |three four five six" -- false
+"one two t|hree four five six" -- true
+"one two th|ree four five six" -- true
+"one two thr|ee four five six" -- true
+"one two thre|e four five six" -- true
+"one two three| four five six" -- true
+"one two three |four five six" -- true
+"one two three f|our five six" -- true
+"one two three fo|ur five six" -- true
+"one two three fou|r five six" -- true
+"one two three four| five six" -- true
+"one two three four |five six" -- false
+"one two three four f|ive six" -- true
+"one two three four fi|ve six" -- true
+"one two three four fiv|e six" -- true
+"one two three four five| six" -- true
+"one two three four five |six" -- true
+"one two three four five s|ix" -- true
+"one two three four five si|x" -- true
+"one two three four five six|" -- true

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-paragraph-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-paragraph-backward-input.html b/Editor/tests/input/positionWithin-paragraph-backward-input.html
new file mode 100644
index 0000000..be0375d
--- /dev/null
+++ b/Editor/tests/input/positionWithin-paragraph-backward-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionWithin("paragraph","backward");
+}
+</script>
+</head>
+<body>
+
+<p>one two</p>
+
+<p>three four</p>
+
+<p>five six</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-paragraph-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-paragraph-forward-expected.html b/Editor/tests/input/positionWithin-paragraph-forward-expected.html
new file mode 100644
index 0000000..3ebabef
--- /dev/null
+++ b/Editor/tests/input/positionWithin-paragraph-forward-expected.html
@@ -0,0 +1,28 @@
+"|one two three four five six" -- true
+"o|ne two three four five six" -- true
+"on|e two three four five six" -- true
+"one| two three four five six" -- true
+"one |two three four five six" -- true
+"one t|wo three four five six" -- true
+"one tw|o three four five six" -- true
+"one two| three four five six" -- false
+"one two |three four five six" -- true
+"one two t|hree four five six" -- true
+"one two th|ree four five six" -- true
+"one two thr|ee four five six" -- true
+"one two thre|e four five six" -- true
+"one two three| four five six" -- true
+"one two three |four five six" -- true
+"one two three f|our five six" -- true
+"one two three fo|ur five six" -- true
+"one two three fou|r five six" -- true
+"one two three four| five six" -- false
+"one two three four |five six" -- true
+"one two three four f|ive six" -- true
+"one two three four fi|ve six" -- true
+"one two three four fiv|e six" -- true
+"one two three four five| six" -- true
+"one two three four five |six" -- true
+"one two three four five s|ix" -- true
+"one two three four five si|x" -- true
+"one two three four five six|" -- false

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-paragraph-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-paragraph-forward-input.html b/Editor/tests/input/positionWithin-paragraph-forward-input.html
new file mode 100644
index 0000000..ebfaf11
--- /dev/null
+++ b/Editor/tests/input/positionWithin-paragraph-forward-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionWithin("paragraph","forward");
+}
+</script>
+</head>
+<body>
+
+<p>one two</p>
+
+<p>three four</p>
+
+<p>five six</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-word-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-word-backward-expected.html b/Editor/tests/input/positionWithin-word-backward-expected.html
new file mode 100644
index 0000000..46605f4
--- /dev/null
+++ b/Editor/tests/input/positionWithin-word-backward-expected.html
@@ -0,0 +1,28 @@
+"|One two. Three, four - five" -- false
+"O|ne two. Three, four - five" -- true
+"On|e two. Three, four - five" -- true
+"One| two. Three, four - five" -- true
+"One |two. Three, four - five" -- false
+"One t|wo. Three, four - five" -- true
+"One tw|o. Three, four - five" -- true
+"One two|. Three, four - five" -- true
+"One two.| Three, four - five" -- false
+"One two. |Three, four - five" -- false
+"One two. T|hree, four - five" -- true
+"One two. Th|ree, four - five" -- true
+"One two. Thr|ee, four - five" -- true
+"One two. Thre|e, four - five" -- true
+"One two. Three|, four - five" -- true
+"One two. Three,| four - five" -- false
+"One two. Three, |four - five" -- false
+"One two. Three, f|our - five" -- true
+"One two. Three, fo|ur - five" -- true
+"One two. Three, fou|r - five" -- true
+"One two. Three, four| - five" -- true
+"One two. Three, four |- five" -- false
+"One two. Three, four -| five" -- false
+"One two. Three, four - |five" -- false
+"One two. Three, four - f|ive" -- true
+"One two. Three, four - fi|ve" -- true
+"One two. Three, four - fiv|e" -- true
+"One two. Three, four - five|" -- true

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-word-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-word-backward-input.html b/Editor/tests/input/positionWithin-word-backward-input.html
new file mode 100644
index 0000000..38035f6
--- /dev/null
+++ b/Editor/tests/input/positionWithin-word-backward-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionWithin("word","backward");
+}
+</script>
+</head>
+<body>
+
+<p>One two. Three, four - five</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-word-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-word-forward-expected.html b/Editor/tests/input/positionWithin-word-forward-expected.html
new file mode 100644
index 0000000..6efcf55
--- /dev/null
+++ b/Editor/tests/input/positionWithin-word-forward-expected.html
@@ -0,0 +1,28 @@
+"|One two. Three, four - five" -- true
+"O|ne two. Three, four - five" -- true
+"On|e two. Three, four - five" -- true
+"One| two. Three, four - five" -- false
+"One |two. Three, four - five" -- true
+"One t|wo. Three, four - five" -- true
+"One tw|o. Three, four - five" -- true
+"One two|. Three, four - five" -- false
+"One two.| Three, four - five" -- false
+"One two. |Three, four - five" -- true
+"One two. T|hree, four - five" -- true
+"One two. Th|ree, four - five" -- true
+"One two. Thr|ee, four - five" -- true
+"One two. Thre|e, four - five" -- true
+"One two. Three|, four - five" -- false
+"One two. Three,| four - five" -- false
+"One two. Three, |four - five" -- true
+"One two. Three, f|our - five" -- true
+"One two. Three, fo|ur - five" -- true
+"One two. Three, fou|r - five" -- true
+"One two. Three, four| - five" -- false
+"One two. Three, four |- five" -- false
+"One two. Three, four -| five" -- false
+"One two. Three, four - |five" -- true
+"One two. Three, four - f|ive" -- true
+"One two. Three, four - fi|ve" -- true
+"One two. Three, four - fiv|e" -- true
+"One two. Three, four - five|" -- false

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/positionWithin-word-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/positionWithin-word-forward-input.html b/Editor/tests/input/positionWithin-word-forward-input.html
new file mode 100644
index 0000000..663e2b7
--- /dev/null
+++ b/Editor/tests/input/positionWithin-word-forward-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testPositionWithin("word","forward");
+}
+</script>
+</head>
+<body>
+
+<p>One two. Three, four - five</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-line-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-line-backward-expected.html b/Editor/tests/input/rangeEnclosing-line-backward-expected.html
new file mode 100644
index 0000000..a70eeef
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-line-backward-expected.html
@@ -0,0 +1,40 @@
+"|one two three four five six seven eight" -- null
+"o|ne two three four five six seven eight" -- "[one two] three four five six seven eight"
+"on|e two three four five six seven eight" -- "[one two] three four five six seven eight"
+"one| two three four five six seven eight" -- "[one two] three four five six seven eight"
+"one |two three four five six seven eight" -- "[one two] three four five six seven eight"
+"one t|wo three four five six seven eight" -- "[one two] three four five six seven eight"
+"one tw|o three four five six seven eight" -- "[one two] three four five six seven eight"
+"one two| three four five six seven eight" -- "[one two] three four five six seven eight"
+"one two |three four five six seven eight" -- null
+"one two t|hree four five six seven eight" -- "one two [three four] five six seven eight"
+"one two th|ree four five six seven eight" -- "one two [three four] five six seven eight"
+"one two thr|ee four five six seven eight" -- "one two [three four] five six seven eight"
+"one two thre|e four five six seven eight" -- "one two [three four] five six seven eight"
+"one two three| four five six seven eight" -- "one two [three four] five six seven eight"
+"one two three |four five six seven eight" -- "one two [three four] five six seven eight"
+"one two three f|our five six seven eight" -- "one two [three four] five six seven eight"
+"one two three fo|ur five six seven eight" -- "one two [three four] five six seven eight"
+"one two three fou|r five six seven eight" -- "one two [three four] five six seven eight"
+"one two three four| five six seven eight" -- "one two [three four] five six seven eight"
+"one two three four |five six seven eight" -- null
+"one two three four f|ive six seven eight" -- "one two three four [five six] seven eight"
+"one two three four fi|ve six seven eight" -- "one two three four [five six] seven eight"
+"one two three four fiv|e six seven eight" -- "one two three four [five six] seven eight"
+"one two three four five| six seven eight" -- "one two three four [five six] seven eight"
+"one two three four five |six seven eight" -- "one two three four [five six] seven eight"
+"one two three four five s|ix seven eight" -- "one two three four [five six] seven eight"
+"one two three four five si|x seven eight" -- "one two three four [five six] seven eight"
+"one two three four five six| seven eight" -- "one two three four [five six] seven eight"
+"one two three four five six |seven eight" -- null
+"one two three four five six s|even eight" -- "one two three four five six [seven eight]"
+"one two three four five six se|ven eight" -- "one two three four five six [seven eight]"
+"one two three four five six sev|en eight" -- "one two three four five six [seven eight]"
+"one two three four five six seve|n eight" -- "one two three four five six [seven eight]"
+"one two three four five six seven| eight" -- "one two three four five six [seven eight]"
+"one two three four five six seven |eight" -- "one two three four five six [seven eight]"
+"one two three four five six seven e|ight" -- "one two three four five six [seven eight]"
+"one two three four five six seven ei|ght" -- "one two three four five six [seven eight]"
+"one two three four five six seven eig|ht" -- "one two three four five six [seven eight]"
+"one two three four five six seven eigh|t" -- "one two three four five six [seven eight]"
+"one two three four five six seven eight|" -- "one two three four five six [seven eight]"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-line-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-line-backward-input.html b/Editor/tests/input/rangeEnclosing-line-backward-input.html
new file mode 100644
index 0000000..2e3f0f1
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-line-backward-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+p { border: 1px solid red;
+font-size: 20px;
+font-family: monospace;
+width: 150px; }
+</style>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testRangeEnclosing("line","backward");
+}
+</script>
+</head>
+<body>
+
+<p>one two three four five six seven eight</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-line-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-line-forward-expected.html b/Editor/tests/input/rangeEnclosing-line-forward-expected.html
new file mode 100644
index 0000000..6444df9
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-line-forward-expected.html
@@ -0,0 +1,40 @@
+"|one two three four five six seven eight" -- "[one two] three four five six seven eight"
+"o|ne two three four five six seven eight" -- "[one two] three four five six seven eight"
+"on|e two three four five six seven eight" -- "[one two] three four five six seven eight"
+"one| two three four five six seven eight" -- "[one two] three four five six seven eight"
+"one |two three four five six seven eight" -- "[one two] three four five six seven eight"
+"one t|wo three four five six seven eight" -- "[one two] three four five six seven eight"
+"one tw|o three four five six seven eight" -- "[one two] three four five six seven eight"
+"one two| three four five six seven eight" -- "[one two] three four five six seven eight"
+"one two |three four five six seven eight" -- "one two [three four] five six seven eight"
+"one two t|hree four five six seven eight" -- "one two [three four] five six seven eight"
+"one two th|ree four five six seven eight" -- "one two [three four] five six seven eight"
+"one two thr|ee four five six seven eight" -- "one two [three four] five six seven eight"
+"one two thre|e four five six seven eight" -- "one two [three four] five six seven eight"
+"one two three| four five six seven eight" -- "one two [three four] five six seven eight"
+"one two three |four five six seven eight" -- "one two [three four] five six seven eight"
+"one two three f|our five six seven eight" -- "one two [three four] five six seven eight"
+"one two three fo|ur five six seven eight" -- "one two [three four] five six seven eight"
+"one two three fou|r five six seven eight" -- "one two [three four] five six seven eight"
+"one two three four| five six seven eight" -- "one two [three four] five six seven eight"
+"one two three four |five six seven eight" -- "one two three four [five six] seven eight"
+"one two three four f|ive six seven eight" -- "one two three four [five six] seven eight"
+"one two three four fi|ve six seven eight" -- "one two three four [five six] seven eight"
+"one two three four fiv|e six seven eight" -- "one two three four [five six] seven eight"
+"one two three four five| six seven eight" -- "one two three four [five six] seven eight"
+"one two three four five |six seven eight" -- "one two three four [five six] seven eight"
+"one two three four five s|ix seven eight" -- "one two three four [five six] seven eight"
+"one two three four five si|x seven eight" -- "one two three four [five six] seven eight"
+"one two three four five six| seven eight" -- "one two three four [five six] seven eight"
+"one two three four five six |seven eight" -- "one two three four five six [seven eight]"
+"one two three four five six s|even eight" -- "one two three four five six [seven eight]"
+"one two three four five six se|ven eight" -- "one two three four five six [seven eight]"
+"one two three four five six sev|en eight" -- "one two three four five six [seven eight]"
+"one two three four five six seve|n eight" -- "one two three four five six [seven eight]"
+"one two three four five six seven| eight" -- "one two three four five six [seven eight]"
+"one two three four five six seven |eight" -- "one two three four five six [seven eight]"
+"one two three four five six seven e|ight" -- "one two three four five six [seven eight]"
+"one two three four five six seven ei|ght" -- "one two three four five six [seven eight]"
+"one two three four five six seven eig|ht" -- "one two three four five six [seven eight]"
+"one two three four five six seven eigh|t" -- "one two three four five six [seven eight]"
+"one two three four five six seven eight|" -- "one two three four five six [seven eight]"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-line-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-line-forward-input.html b/Editor/tests/input/rangeEnclosing-line-forward-input.html
new file mode 100644
index 0000000..acba51f
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-line-forward-input.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+p { border: 1px solid red;
+font-size: 20px;
+font-family: monospace;
+width: 150px; }
+</style>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testRangeEnclosing("line","forward");
+}
+</script>
+</head>
+<body>
+
+<p>one two three four five six seven eight</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-paragraph-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-paragraph-backward-expected.html b/Editor/tests/input/rangeEnclosing-paragraph-backward-expected.html
new file mode 100644
index 0000000..8438a4d
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-paragraph-backward-expected.html
@@ -0,0 +1,28 @@
+"|one two three four five six" -- null
+"o|ne two three four five six" -- "[one two] three four five six"
+"on|e two three four five six" -- "[one two] three four five six"
+"one| two three four five six" -- "[one two] three four five six"
+"one |two three four five six" -- "[one two] three four five six"
+"one t|wo three four five six" -- "[one two] three four five six"
+"one tw|o three four five six" -- "[one two] three four five six"
+"one two| three four five six" -- "[one two] three four five six"
+"one two |three four five six" -- null
+"one two t|hree four five six" -- "one two [three four] five six"
+"one two th|ree four five six" -- "one two [three four] five six"
+"one two thr|ee four five six" -- "one two [three four] five six"
+"one two thre|e four five six" -- "one two [three four] five six"
+"one two three| four five six" -- "one two [three four] five six"
+"one two three |four five six" -- "one two [three four] five six"
+"one two three f|our five six" -- "one two [three four] five six"
+"one two three fo|ur five six" -- "one two [three four] five six"
+"one two three fou|r five six" -- "one two [three four] five six"
+"one two three four| five six" -- "one two [three four] five six"
+"one two three four |five six" -- null
+"one two three four f|ive six" -- "one two three four [five six]"
+"one two three four fi|ve six" -- "one two three four [five six]"
+"one two three four fiv|e six" -- "one two three four [five six]"
+"one two three four five| six" -- "one two three four [five six]"
+"one two three four five |six" -- "one two three four [five six]"
+"one two three four five s|ix" -- "one two three four [five six]"
+"one two three four five si|x" -- "one two three four [five six]"
+"one two three four five six|" -- "one two three four [five six]"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-paragraph-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-paragraph-backward-input.html b/Editor/tests/input/rangeEnclosing-paragraph-backward-input.html
new file mode 100644
index 0000000..f4c4398
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-paragraph-backward-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testRangeEnclosing("paragraph","backward");
+}
+</script>
+</head>
+<body>
+
+<p>one two</p>
+
+<p>three four</p>
+
+<p>five six</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-paragraph-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-paragraph-forward-expected.html b/Editor/tests/input/rangeEnclosing-paragraph-forward-expected.html
new file mode 100644
index 0000000..96d99d4
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-paragraph-forward-expected.html
@@ -0,0 +1,28 @@
+"|one two three four five six" -- "[one two] three four five six"
+"o|ne two three four five six" -- "[one two] three four five six"
+"on|e two three four five six" -- "[one two] three four five six"
+"one| two three four five six" -- "[one two] three four five six"
+"one |two three four five six" -- "[one two] three four five six"
+"one t|wo three four five six" -- "[one two] three four five six"
+"one tw|o three four five six" -- "[one two] three four five six"
+"one two| three four five six" -- null
+"one two |three four five six" -- "one two [three four] five six"
+"one two t|hree four five six" -- "one two [three four] five six"
+"one two th|ree four five six" -- "one two [three four] five six"
+"one two thr|ee four five six" -- "one two [three four] five six"
+"one two thre|e four five six" -- "one two [three four] five six"
+"one two three| four five six" -- "one two [three four] five six"
+"one two three |four five six" -- "one two [three four] five six"
+"one two three f|our five six" -- "one two [three four] five six"
+"one two three fo|ur five six" -- "one two [three four] five six"
+"one two three fou|r five six" -- "one two [three four] five six"
+"one two three four| five six" -- null
+"one two three four |five six" -- "one two three four [five six]"
+"one two three four f|ive six" -- "one two three four [five six]"
+"one two three four fi|ve six" -- "one two three four [five six]"
+"one two three four fiv|e six" -- "one two three four [five six]"
+"one two three four five| six" -- "one two three four [five six]"
+"one two three four five |six" -- "one two three four [five six]"
+"one two three four five s|ix" -- "one two three four [five six]"
+"one two three four five si|x" -- "one two three four [five six]"
+"one two three four five six|" -- null

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-paragraph-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-paragraph-forward-input.html b/Editor/tests/input/rangeEnclosing-paragraph-forward-input.html
new file mode 100644
index 0000000..3d80846
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-paragraph-forward-input.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testRangeEnclosing("paragraph","forward");
+}
+</script>
+</head>
+<body>
+
+<p>one two</p>
+
+<p>three four</p>
+
+<p>five six</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-word-backward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-word-backward-expected.html b/Editor/tests/input/rangeEnclosing-word-backward-expected.html
new file mode 100644
index 0000000..94af390
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-word-backward-expected.html
@@ -0,0 +1,28 @@
+"|One two. Three, four - five" -- null
+"O|ne two. Three, four - five" -- "[One] two. Three, four - five"
+"On|e two. Three, four - five" -- "[One] two. Three, four - five"
+"One| two. Three, four - five" -- "[One] two. Three, four - five"
+"One |two. Three, four - five" -- null
+"One t|wo. Three, four - five" -- "One [two]. Three, four - five"
+"One tw|o. Three, four - five" -- "One [two]. Three, four - five"
+"One two|. Three, four - five" -- "One [two]. Three, four - five"
+"One two.| Three, four - five" -- null
+"One two. |Three, four - five" -- null
+"One two. T|hree, four - five" -- "One two. [Three], four - five"
+"One two. Th|ree, four - five" -- "One two. [Three], four - five"
+"One two. Thr|ee, four - five" -- "One two. [Three], four - five"
+"One two. Thre|e, four - five" -- "One two. [Three], four - five"
+"One two. Three|, four - five" -- "One two. [Three], four - five"
+"One two. Three,| four - five" -- null
+"One two. Three, |four - five" -- null
+"One two. Three, f|our - five" -- "One two. Three, [four] - five"
+"One two. Three, fo|ur - five" -- "One two. Three, [four] - five"
+"One two. Three, fou|r - five" -- "One two. Three, [four] - five"
+"One two. Three, four| - five" -- "One two. Three, [four] - five"
+"One two. Three, four |- five" -- null
+"One two. Three, four -| five" -- null
+"One two. Three, four - |five" -- null
+"One two. Three, four - f|ive" -- "One two. Three, four - [five]"
+"One two. Three, four - fi|ve" -- "One two. Three, four - [five]"
+"One two. Three, four - fiv|e" -- "One two. Three, four - [five]"
+"One two. Three, four - five|" -- "One two. Three, four - [five]"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-word-backward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-word-backward-input.html b/Editor/tests/input/rangeEnclosing-word-backward-input.html
new file mode 100644
index 0000000..b8c0ddc
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-word-backward-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testRangeEnclosing("word","backward");
+}
+</script>
+</head>
+<body>
+
+<p>One two. Three, four - five</p>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-word-forward-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-word-forward-expected.html b/Editor/tests/input/rangeEnclosing-word-forward-expected.html
new file mode 100644
index 0000000..f2127a7
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-word-forward-expected.html
@@ -0,0 +1,28 @@
+"|One two. Three, four - five" -- "[One] two. Three, four - five"
+"O|ne two. Three, four - five" -- "[One] two. Three, four - five"
+"On|e two. Three, four - five" -- "[One] two. Three, four - five"
+"One| two. Three, four - five" -- null
+"One |two. Three, four - five" -- "One [two]. Three, four - five"
+"One t|wo. Three, four - five" -- "One [two]. Three, four - five"
+"One tw|o. Three, four - five" -- "One [two]. Three, four - five"
+"One two|. Three, four - five" -- null
+"One two.| Three, four - five" -- null
+"One two. |Three, four - five" -- "One two. [Three], four - five"
+"One two. T|hree, four - five" -- "One two. [Three], four - five"
+"One two. Th|ree, four - five" -- "One two. [Three], four - five"
+"One two. Thr|ee, four - five" -- "One two. [Three], four - five"
+"One two. Thre|e, four - five" -- "One two. [Three], four - five"
+"One two. Three|, four - five" -- null
+"One two. Three,| four - five" -- null
+"One two. Three, |four - five" -- "One two. Three, [four] - five"
+"One two. Three, f|our - five" -- "One two. Three, [four] - five"
+"One two. Three, fo|ur - five" -- "One two. Three, [four] - five"
+"One two. Three, fou|r - five" -- "One two. Three, [four] - five"
+"One two. Three, four| - five" -- null
+"One two. Three, four |- five" -- null
+"One two. Three, four -| five" -- null
+"One two. Three, four - |five" -- "One two. Three, four - [five]"
+"One two. Three, four - f|ive" -- "One two. Three, four - [five]"
+"One two. Three, four - fi|ve" -- "One two. Three, four - [five]"
+"One two. Three, four - fiv|e" -- "One two. Three, four - [five]"
+"One two. Three, four - five|" -- null

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/rangeEnclosing-word-forward-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/rangeEnclosing-word-forward-input.html b/Editor/tests/input/rangeEnclosing-word-forward-input.html
new file mode 100644
index 0000000..b92237c
--- /dev/null
+++ b/Editor/tests/input/rangeEnclosing-word-forward-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="InputTests.js"></script>
+<script>
+function performTest()
+{
+    return testRangeEnclosing("word","forward");
+}
+</script>
+</head>
+<body>
+
+<p>One two. Three, four - five</p>
+
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange01-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange01-input.html b/Editor/tests/input/replaceRange01-input.html
new file mode 100644
index 0000000..7424bd1
--- /dev/null
+++ b/Editor/tests/input/replaceRange01-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var range = Selection_get();
+    Input_replaceRange(range.start,range.end,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sam[ple te]xt</p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange02-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange02-input.html b/Editor/tests/input/replaceRange02-input.html
new file mode 100644
index 0000000..eab4938
--- /dev/null
+++ b/Editor/tests/input/replaceRange02-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var range = Selection_get();
+    Input_replaceRange(range.start,range.end,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>[Sam]ple text</p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange03-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange03-input.html b/Editor/tests/input/replaceRange03-input.html
new file mode 100644
index 0000000..fbb92b5
--- /dev/null
+++ b/Editor/tests/input/replaceRange03-input.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var range = Selection_get();
+    Input_replaceRange(range.start,range.end,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sample te[xt]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange04-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange04-expected.html b/Editor/tests/input/replaceRange04-expected.html
new file mode 100644
index 0000000..f88f1e6
--- /dev/null
+++ b/Editor/tests/input/replaceRange04-expected.html
@@ -0,0 +1,9 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      HELLO[]
+      <br/>
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange04-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange04-input.html b/Editor/tests/input/replaceRange04-input.html
new file mode 100644
index 0000000..bdf1276
--- /dev/null
+++ b/Editor/tests/input/replaceRange04-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var pos = new Position(p,0);
+    Input_replaceRange(pos,pos,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p><br></p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange05-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange05-input.html b/Editor/tests/input/replaceRange05-input.html
new file mode 100644
index 0000000..e5190f8
--- /dev/null
+++ b/Editor/tests/input/replaceRange05-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var pos = new Position(p,0);
+    Input_replaceRange(pos,pos,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sample text</p>
+</body>
+</html>

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

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange06-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange06-input.html b/Editor/tests/input/replaceRange06-input.html
new file mode 100644
index 0000000..1bea8a3
--- /dev/null
+++ b/Editor/tests/input/replaceRange06-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var pos = new Position(p,p.childNodes.length);
+    Input_replaceRange(pos,pos,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sample text</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange07-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange07-expected.html b/Editor/tests/input/replaceRange07-expected.html
new file mode 100644
index 0000000..f6452af
--- /dev/null
+++ b/Editor/tests/input/replaceRange07-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      SampleHELLO[]
+      <img src="../figures/nothing.png"/>
+      text
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange07-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange07-input.html b/Editor/tests/input/replaceRange07-input.html
new file mode 100644
index 0000000..17c0d45
--- /dev/null
+++ b/Editor/tests/input/replaceRange07-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var pos = new Position(p,1);
+    Input_replaceRange(pos,pos,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sample<img src="../figures/nothing.png">text</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange08-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange08-expected.html b/Editor/tests/input/replaceRange08-expected.html
new file mode 100644
index 0000000..e08da90
--- /dev/null
+++ b/Editor/tests/input/replaceRange08-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      Sample
+      <img src="../figures/nothing.png"/>
+      HELLO[]text
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange08-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange08-input.html b/Editor/tests/input/replaceRange08-input.html
new file mode 100644
index 0000000..1905eee
--- /dev/null
+++ b/Editor/tests/input/replaceRange08-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var pos = new Position(p,2);
+    Input_replaceRange(pos,pos,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sample<img src="../figures/nothing.png">text</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange09-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange09-expected.html b/Editor/tests/input/replaceRange09-expected.html
new file mode 100644
index 0000000..0007228
--- /dev/null
+++ b/Editor/tests/input/replaceRange09-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <p>
+      Sample
+      <img src="../figures/nothing.png"/>
+      HELLO[]
+      <img src="../figures/nothing.png"/>
+      text
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange09-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange09-input.html b/Editor/tests/input/replaceRange09-input.html
new file mode 100644
index 0000000..a898b44
--- /dev/null
+++ b/Editor/tests/input/replaceRange09-input.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var p = document.getElementsByTagName("P")[0];
+    var pos = new Position(p,2);
+    Input_replaceRange(pos,pos,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Sample<img src="../figures/nothing.png"><img src="../figures/nothing.png">text</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange10-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange10-expected.html b/Editor/tests/input/replaceRange10-expected.html
new file mode 100644
index 0000000..4423f85
--- /dev/null
+++ b/Editor/tests/input/replaceRange10-expected.html
@@ -0,0 +1,11 @@
+<html>
+  <head></head>
+  <body>
+    <p>Before</p>
+    <p>
+      HELLO[]
+      <br/>
+    </p>
+    <p>After</p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/input/replaceRange10-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/input/replaceRange10-input.html b/Editor/tests/input/replaceRange10-input.html
new file mode 100644
index 0000000..518cc94
--- /dev/null
+++ b/Editor/tests/input/replaceRange10-input.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    var range = Selection_get();
+    Input_replaceRange(range.start,range.end,"HELLO");
+    showSelection();
+}
+</script>
+</head>
+<body>
+<p>Before</p>
+<p>[Sample text]</p>
+<p>After</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList01a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList01a-expected.html b/Editor/tests/lists/clearList01a-expected.html
new file mode 100644
index 0000000..e628530
--- /dev/null
+++ b/Editor/tests/lists/clearList01a-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>One</p>
+    <p>Two</p>
+    <p>Three</p>
+    <p>Four</p>
+    <p>Five</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList01a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList01a-input.html b/Editor/tests/lists/clearList01a-input.html
new file mode 100644
index 0000000..adce591
--- /dev/null
+++ b/Editor/tests/lists/clearList01a-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>[One</p></li>
+  <li><p>Two</p></li>
+  <li><p>Three</p></li>
+  <li><p>Four</p></li>
+  <li><p>Five]</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList01b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList01b-expected.html b/Editor/tests/lists/clearList01b-expected.html
new file mode 100644
index 0000000..e628530
--- /dev/null
+++ b/Editor/tests/lists/clearList01b-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>One</p>
+    <p>Two</p>
+    <p>Three</p>
+    <p>Four</p>
+    <p>Five</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList01b-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList01b-input.html b/Editor/tests/lists/clearList01b-input.html
new file mode 100644
index 0000000..17460ed
--- /dev/null
+++ b/Editor/tests/lists/clearList01b-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>[One</li>
+  <li>Two</li>
+  <li>Three</li>
+  <li>Four</li>
+  <li>Five]</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList02a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList02a-expected.html b/Editor/tests/lists/clearList02a-expected.html
new file mode 100644
index 0000000..8fd4b7b
--- /dev/null
+++ b/Editor/tests/lists/clearList02a-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <p>One</p>
+    <ol>
+      <li><p>Two</p></li>
+      <li><p>Three</p></li>
+      <li><p>Four</p></li>
+      <li><p>Five</p></li>
+    </ol>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList02a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList02a-input.html b/Editor/tests/lists/clearList02a-input.html
new file mode 100644
index 0000000..c8bcf42
--- /dev/null
+++ b/Editor/tests/lists/clearList02a-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>[One]</p></li>
+  <li><p>Two</p></li>
+  <li><p>Three</p></li>
+  <li><p>Four</p></li>
+  <li><p>Five</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList02b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList02b-expected.html b/Editor/tests/lists/clearList02b-expected.html
new file mode 100644
index 0000000..a085c2c
--- /dev/null
+++ b/Editor/tests/lists/clearList02b-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <p>One</p>
+    <ol>
+      <li>Two</li>
+      <li>Three</li>
+      <li>Four</li>
+      <li>Five</li>
+    </ol>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList02b-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList02b-input.html b/Editor/tests/lists/clearList02b-input.html
new file mode 100644
index 0000000..b9eb0b0
--- /dev/null
+++ b/Editor/tests/lists/clearList02b-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>[One]</li>
+  <li>Two</li>
+  <li>Three</li>
+  <li>Four</li>
+  <li>Five</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList03a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList03a-expected.html b/Editor/tests/lists/clearList03a-expected.html
new file mode 100644
index 0000000..ad84c10
--- /dev/null
+++ b/Editor/tests/lists/clearList03a-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>Two</p></li>
+    </ol>
+    <p>Three</p>
+    <ol>
+      <li><p>Four</p></li>
+      <li><p>Five</p></li>
+    </ol>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList03a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList03a-input.html b/Editor/tests/lists/clearList03a-input.html
new file mode 100644
index 0000000..63a9853
--- /dev/null
+++ b/Editor/tests/lists/clearList03a-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p>Two</p></li>
+  <li><p>[Three]</p></li>
+  <li><p>Four</p></li>
+  <li><p>Five</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList03b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList03b-expected.html b/Editor/tests/lists/clearList03b-expected.html
new file mode 100644
index 0000000..f5b7052
--- /dev/null
+++ b/Editor/tests/lists/clearList03b-expected.html
@@ -0,0 +1,14 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+    </ol>
+    <p>Three</p>
+    <ol>
+      <li>Four</li>
+      <li>Five</li>
+    </ol>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList03b-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList03b-input.html b/Editor/tests/lists/clearList03b-input.html
new file mode 100644
index 0000000..b7c9421
--- /dev/null
+++ b/Editor/tests/lists/clearList03b-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>[Three]</li>
+  <li>Four</li>
+  <li>Five</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList04a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList04a-expected.html b/Editor/tests/lists/clearList04a-expected.html
new file mode 100644
index 0000000..52dd415
--- /dev/null
+++ b/Editor/tests/lists/clearList04a-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li><p>One</p></li>
+      <li><p>Two</p></li>
+      <li><p>Three</p></li>
+      <li><p>Four</p></li>
+    </ol>
+    <p>Five</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList04a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList04a-input.html b/Editor/tests/lists/clearList04a-input.html
new file mode 100644
index 0000000..6df0c42
--- /dev/null
+++ b/Editor/tests/lists/clearList04a-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li><p>One</p></li>
+  <li><p>Two</p></li>
+  <li><p>Three</p></li>
+  <li><p>Four</p></li>
+  <li><p>[Five]</p></li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList04b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList04b-expected.html b/Editor/tests/lists/clearList04b-expected.html
new file mode 100644
index 0000000..3e0d5c7
--- /dev/null
+++ b/Editor/tests/lists/clearList04b-expected.html
@@ -0,0 +1,12 @@
+<html>
+  <head></head>
+  <body>
+    <ol>
+      <li>One</li>
+      <li>Two</li>
+      <li>Three</li>
+      <li>Four</li>
+    </ol>
+    <p>Five</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList04b-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList04b-input.html b/Editor/tests/lists/clearList04b-input.html
new file mode 100644
index 0000000..a9f8c58
--- /dev/null
+++ b/Editor/tests/lists/clearList04b-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+  <li>Four</li>
+  <li>[Five]</li>
+</ol>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList05a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList05a-expected.html b/Editor/tests/lists/clearList05a-expected.html
new file mode 100644
index 0000000..1ae58b8
--- /dev/null
+++ b/Editor/tests/lists/clearList05a-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>Before</p>
+    <p>One</p>
+    <p>Two</p>
+    <p>Three</p>
+    <p>After</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList05a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList05a-input.html b/Editor/tests/lists/clearList05a-input.html
new file mode 100644
index 0000000..9804eb1
--- /dev/null
+++ b/Editor/tests/lists/clearList05a-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<p>[Before</p>
+<ol>
+  <li><p>One</p></li>
+  <li><p>Two</p></li>
+  <li><p>Three</p></li>
+</ol>
+<p>After]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList05b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList05b-expected.html b/Editor/tests/lists/clearList05b-expected.html
new file mode 100644
index 0000000..1ae58b8
--- /dev/null
+++ b/Editor/tests/lists/clearList05b-expected.html
@@ -0,0 +1,10 @@
+<html>
+  <head></head>
+  <body>
+    <p>Before</p>
+    <p>One</p>
+    <p>Two</p>
+    <p>Three</p>
+    <p>After</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList05b-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList05b-input.html b/Editor/tests/lists/clearList05b-input.html
new file mode 100644
index 0000000..8a9b81a
--- /dev/null
+++ b/Editor/tests/lists/clearList05b-input.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<p>[Before</p>
+<ol>
+  <li>One</li>
+  <li>Two</li>
+  <li>Three</li>
+</ol>
+<p>After]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList06a-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList06a-expected.html b/Editor/tests/lists/clearList06a-expected.html
new file mode 100644
index 0000000..90d5e01
--- /dev/null
+++ b/Editor/tests/lists/clearList06a-expected.html
@@ -0,0 +1,15 @@
+<html>
+  <head></head>
+  <body>
+    <p>Before</p>
+    <p>One</p>
+    <p>Two</p>
+    <ol>
+      <li><p>First</p></li>
+      <li><p>Second</p></li>
+      <li><p>Third</p></li>
+    </ol>
+    <p>Three</p>
+    <p>After</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList06a-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList06a-input.html b/Editor/tests/lists/clearList06a-input.html
new file mode 100644
index 0000000..2e8c46f
--- /dev/null
+++ b/Editor/tests/lists/clearList06a-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<p>[Before</p>
+<ol>
+  <li><p>One</p></li>
+  <li><p>Two</p>
+    <ol>
+      <li><p>First</p></li>
+      <li><p>Second</p></li>
+      <li><p>Third</p></li>
+    </ol>
+  </li>
+  <li><p>Three</p></li>
+</ol>
+<p>After]</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList06b-expected.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList06b-expected.html b/Editor/tests/lists/clearList06b-expected.html
new file mode 100644
index 0000000..b1b0827
--- /dev/null
+++ b/Editor/tests/lists/clearList06b-expected.html
@@ -0,0 +1,15 @@
+<html>
+  <head></head>
+  <body>
+    <p>Before</p>
+    <p>One</p>
+    <p>Two</p>
+    <ol>
+      <li>First</li>
+      <li>Second</li>
+      <li>Third</li>
+    </ol>
+    <p>Three</p>
+    <p>After</p>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/03bd5af0/Editor/tests/lists/clearList06b-input.html
----------------------------------------------------------------------
diff --git a/Editor/tests/lists/clearList06b-input.html b/Editor/tests/lists/clearList06b-input.html
new file mode 100644
index 0000000..d7c450c
--- /dev/null
+++ b/Editor/tests/lists/clearList06b-input.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function performTest()
+{
+    Lists_clearList();
+}
+</script>
+</head>
+<body>
+<p>[Before</p>
+<ol>
+  <li>One</li>
+  <li>Two
+    <ol>
+      <li>First</li>
+      <li>Second</li>
+      <li>Third</li>
+    </ol>
+  </li>
+  <li>Three</li>
+</ol>
+<p>After]</p>
+</body>
+</html>


Mime
View raw message