OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <body> |
| 5 <div contenteditable id="root" class="editing"> |
| 6 <span id="span">f oo bar baz</span> |
| 7 </div> |
| 8 <div id="log"></div> |
| 9 <script> |
| 10 test(function () { |
| 11 var selection = getSelection(); |
| 12 selection.collapse(span.firstChild, 0); |
| 13 selection.modify("move", "forward", "character"); |
| 14 selection.modify("move", "forward", "character"); |
| 15 for (i = 0; i < 7; i++) { |
| 16 selection.modify("extend", "forward", "character"); |
| 17 } |
| 18 assert_equals(selection.toString(), "oo bar "); |
| 19 }); |
| 20 </script> |
| 21 |
| 22 </body> |
OLD | NEW |