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 <p id="before">Before</p> | 6 <p id="before">Before</p> |
7 <textarea id="textarea">Text</textarea> | 7 <textarea id="textarea">Text</textarea> |
8 <p id="after">After</p> | 8 <p id="after">After</p> |
9 | 9 |
10 <div id="console"></div> | 10 <div id="console"></div> |
11 <script> | 11 <script> |
12 description("Ensure that extending a selection beyond a textarea does not escape
outside its shadow root."); | 12 description("Ensure that extending a selection beyond a textarea does not escape
outside its shadow root."); |
13 | 13 |
14 var before = document.getElementById("before"); | 14 var before = document.getElementById("before"); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 shouldBe("textareaSelection.focusNode", "initialTextareaFocusNode"); | 46 shouldBe("textareaSelection.focusNode", "initialTextareaFocusNode"); |
47 shouldBe("textareaSelection.focusOffset", "4"); | 47 shouldBe("textareaSelection.focusOffset", "4"); |
48 | 48 |
49 shouldBe("window.getSelection().focusNode", "initialFocusNode"); | 49 shouldBe("window.getSelection().focusNode", "initialFocusNode"); |
50 shouldBe("window.getSelection().focusOffset", "initialFocusOffset"); | 50 shouldBe("window.getSelection().focusOffset", "initialFocusOffset"); |
51 | 51 |
52 </script> | 52 </script> |
53 | 53 |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |