Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: LayoutTests/editing/selection/stay-in-textarea.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698