OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 | 5 |
6 <div contentEditable> | 6 <div contentEditable> |
7 <p id="before">Before</p> | 7 <p id="before">Before</p> |
8 <p id="middle" contentEditable="false">Middle</p> | 8 <p id="middle" contentEditable="false">Middle</p> |
9 <p id="after">After</p> | 9 <p id="after">After</p> |
10 </div> | 10 </div> |
11 | 11 |
12 <div id="console"></div> | 12 <div id="console"></div> |
13 <script> | 13 <script> |
14 description("Ensure that extending a selection inside a contentEditable skips pa
st an uneditable region."); | 14 description("Ensure that extending a selection inside a contentEditable skips pa
st an uneditable region."); |
(...skipping 22 matching lines...) Expand all Loading... |
37 sel.modify("extend", "forward", "line"); | 37 sel.modify("extend", "forward", "line"); |
38 shouldBe("sel.focusNode.parentElement", "after"); | 38 shouldBe("sel.focusNode.parentElement", "after"); |
39 | 39 |
40 sel.setBaseAndExtent(after, 5, after, 0); | 40 sel.setBaseAndExtent(after, 5, after, 0); |
41 sel.modify("extend", "backward", "line"); | 41 sel.modify("extend", "backward", "line"); |
42 shouldBe("sel.focusNode.parentElement", "before"); | 42 shouldBe("sel.focusNode.parentElement", "before"); |
43 </script> | 43 </script> |
44 | 44 |
45 </body> | 45 </body> |
46 </html> | 46 </html> |
OLD | NEW |