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

Side by Side Diff: LayoutTests/editing/selection/caret-after-removing-node.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 <body> 1 <body>
2 <div id="content"> 2 <div id="content">
3 <p id="description"></p> 3 <p id="description"></p>
4 Manual Steps: 4 Manual Steps:
5 <ol> 5 <ol>
6 <li>Click "click me" in blue box below.</li> 6 <li>Click "click me" in blue box below.</li>
7 <li>See caret in blue box. 7 <li>See caret in blue box.
8 </ol> 8 </ol>
9 <div id="sample" contenteditable="true" style="border: solid 1px blue">click me< /div> 9 <div id="sample" contenteditable="true" style="border: solid 1px blue">click me< /div>
10 </div> 10 </div>
11 <script src="../../fast/js/resources/js-test-pre.js"></script> 11 <script src="../../resources/js-test.js"></script>
12 <script> 12 <script>
13 description("Caret position after removing node"); 13 description("Caret position after removing node");
14 14
15 function $(id) { return document.getElementById(id); } 15 function $(id) { return document.getElementById(id); }
16 16
17 var sample = $('sample'); 17 var sample = $('sample');
18 18
19 sample.addEventListener('focus', function() { 19 sample.addEventListener('focus', function() {
20 this.innerHTML = ''; 20 this.innerHTML = '';
21 }); 21 });
22 22
23 if (window.eventSender) { 23 if (window.eventSender) {
24 eventSender.mouseMoveTo(sample.offsetLeft + 5, sample.offsetTop + 5); 24 eventSender.mouseMoveTo(sample.offsetLeft + 5, sample.offsetTop + 5);
25 eventSender.mouseDown(0); 25 eventSender.mouseDown(0);
26 shouldBeEqualToString('getSelection().type', 'Caret'); 26 shouldBeEqualToString('getSelection().type', 'Caret');
27 shouldBe('getSelection().focusNode', 'sample'); 27 shouldBe('getSelection().focusNode', 'sample');
28 shouldBe('getSelection().focusOffset', '0'); 28 shouldBe('getSelection().focusOffset', '0');
29 $('content').outerHTML = ''; 29 $('content').outerHTML = '';
30 } 30 }
31 </script> 31 </script>
32 </body> 32 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698