| Index: third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-005.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-005.html b/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-005.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a0a496db07a9d0873e160690d923c971f4a114aa
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-005.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<body>
|
| +<div contenteditable id="root" class="editing">
|
| +<span id="span"><i>F and seven</i> years <b> as </b>our fathers f upon this
|
| +continent, a new nation, conceived in Liberty, and dedicated to the
|
| +proposition that all
|
| +<br>men are created equal.</span>
|
| +</div>
|
| +<div id="log"></div>
|
| +<script>
|
| +test(function () {
|
| + var selection = getSelection();
|
| + selection.collapse(span.firstChild.firstChild, 0);
|
| + for (i = 0; i < 159; i++) {
|
| + selection.modify("extend", "forward", "character");
|
| + }
|
| + for (i = 0; i < 158; i++) {
|
| + selection.modify("extend", "backward", "character");
|
| + }
|
| + assert_equals(selection.anchorNode, span.firstChild.firstChild);
|
| + assert_equals(selection.anchorOffset, 0);
|
| + assert_equals(selection.focusNode, span.firstChild.firstChild);
|
| + assert_equals(selection.focusOffset, 1);
|
| +});
|
| +</script>
|
| +
|
| +</body>
|
|
|