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

Side by Side Diff: LayoutTests/editing/deleting/delete-listitem-003.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 <head> 1 <head>
2 <style> 2 <style>
3 p.listStyle:before { 3 p.listStyle:before {
4 content: "\25cf"; 4 content: "\25cf";
5 margin-right: 18pt; 5 margin-right: 18pt;
6 } 6 }
7 </style> 7 </style>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="container"> 10 <div id="container">
11 <div contenteditable="true" id="work"> 11 <div contenteditable="true" id="work">
12 <p class="listStyle"><span>One</span><br id="one"></p> 12 <p class="listStyle"><span>One</span><br id="one"></p>
13 <p class="listStyle"><span>Two</span><br id="two"></p> 13 <p class="listStyle"><span>Two</span><br id="two"></p>
14 <p class="listStyle"><span>Three</span><br id="three"></p> 14 <p class="listStyle"><span>Three</span><br id="three"></p>
15 </div> 15 </div>
16 </div> 16 </div>
17 <script src="../../fast/js/resources/js-test-pre.js"></script> 17 <script src="../../resources/js-test.js"></script>
18 <script> 18 <script>
19 function $(id) { return document.getElementById(id); } 19 function $(id) { return document.getElementById(id); }
20 20
21 var sample = document.querySelectorAll("p.listStyle")[1]; 21 var sample = document.querySelectorAll("p.listStyle")[1];
22 var range = document.createRange(); 22 var range = document.createRange();
23 range.selectNode(sample.firstChild); 23 range.selectNode(sample.firstChild);
24 var selection = window.getSelection(); 24 var selection = window.getSelection();
25 selection.removeAllRanges(); 25 selection.removeAllRanges();
26 selection.addRange(range); 26 selection.addRange(range);
27 document.execCommand('Delete'); 27 document.execCommand('Delete');
28 shouldBeEqualToString('sample.outerHTML', '<p class="listStyle"><br id="two"></p >'); 28 shouldBeEqualToString('sample.outerHTML', '<p class="listStyle"><br id="two"></p >');
29 29
30 if (window.testRunner) 30 if (window.testRunner)
31 $('container').outerHTML = ''; 31 $('container').outerHTML = '';
32 </script> 32 </script>
33 </body> 33 </body>
OLDNEW
« no previous file with comments | « LayoutTests/editing/deleting/delete-character-003.html ('k') | LayoutTests/editing/deleting/delete-non-static-position.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698