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

Side by Side Diff: LayoutTests/editing/deleting/delete-non-static-position.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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 p.li { 4 p.li {
5 position: relative; 5 position: relative;
6 } 6 }
7 </style> 7 </style>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="container"> 10 <div id="container">
11 <p id="description"></p> 11 <p id="description"></p>
12 <div id="sample" contenteditable="true"> 12 <div id="sample" contenteditable="true">
13 <p class="li" id="e0">Zero</p> 13 <p class="li" id="e0">Zero</p>
14 <p class="li" id="e1">One</p> 14 <p class="li" id="e1">One</p>
15 <p class="li" id="e2">Two</p> 15 <p class="li" id="e2">Two</p>
16 <p class="li" id="e3"><br></p> 16 <p class="li" id="e3"><br></p>
17 <p class="li" id="e4"><br></p> 17 <p class="li" id="e4"><br></p>
18 <p class="li" id="e5"><br></p> 18 <p class="li" id="e5"><br></p>
19 </div> 19 </div>
20 </div> 20 </div>
21 <div id="console"></div> 21 <div id="console"></div>
22 <script src="../../fast/js/resources/js-test-pre.js"></script> 22 <script src="../../resources/js-test.js"></script>
23 <script> 23 <script>
24 description('Delete key should not remove extra nodes'); 24 description('Delete key should not remove extra nodes');
25 function $(id) { return document.getElementById(id); } 25 function $(id) { return document.getElementById(id); }
26 $('sample').focus(); 26 $('sample').focus();
27 var range = document.createRange(); 27 var range = document.createRange();
28 range.setStart($('e5'), 1); 28 range.setStart($('e5'), 1);
29 var selection = window.getSelection(); 29 var selection = window.getSelection();
30 selection.removeAllRanges(); 30 selection.removeAllRanges();
31 selection.addRange(range); 31 selection.addRange(range);
32 document.execCommand('Delete', true); 32 document.execCommand('Delete', true);
33 shouldBe('document.querySelectorAll("p.li").length', '5'); 33 shouldBe('document.querySelectorAll("p.li").length', '5');
34 if (window.testRunner) 34 if (window.testRunner)
35 $('container').outerHTML = ''; 35 $('container').outerHTML = '';
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/deleting/delete-listitem-003.html ('k') | LayoutTests/editing/deleting/delete-svg-001.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698