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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/cleanup-on-move.html

Issue 2693813002: Selection API: Some functions should throw InvalidNodeTypeError and IndexSizeError. (Closed)
Patch Set: adjust 2 more tests Created 3 years, 10 months 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <body> 3 <body>
4 <script src="../../resources/dump-as-markup.js"></script> 4 <script src="../../resources/dump-as-markup.js"></script>
5 <script src="resources/select-and-drag.js"></script> 5 <script src="resources/select-and-drag.js"></script>
6 <div contenteditable="true"> 6 <div contenteditable="true">
7 <ol id="test"> 7 <ol id="test">
8 <li id="one">one</li><li id="two">two</li><li id="three">three</li><li id="four" >four</li> 8 <li id="one">one</li><li id="two">two</li><li id="three">three</li><li id="four" >four</li>
9 </ol> 9 </ol>
10 </div> 10 </div>
11 11
12 <script> 12 <script>
13 Markup.description('This test drags a selection of a couple of <li> and drops th em after another <li> in the same list. It verifies that no empty <li> (actually with a <br> inside) are left after the moving operation.'); 13 Markup.description('This test drags a selection of a couple of <li> and drops th em after another <li> in the same list. It verifies that no empty <li> (actually with a <br> inside) are left after the moving operation.');
14 14
15 if (window.testRunner) { 15 if (window.testRunner) {
16 selectListItems("two", "three", 5); 16 selectListItems("two", "three", 1);
17 Markup.dump("test", "The original list looks like this. 'two' and 'three' ar e selected and are going to be dropped after 'four'"); 17 Markup.dump("test", "The original list looks like this. 'two' and 'three' ar e selected and are going to be dropped after 'four'");
18 dragSelectionToTarget("two", "four"); 18 dragSelectionToTarget("two", "four");
19 Markup.dump("test", "'two' and 'three' should appear as <li> after 'four' an d no empty <li> (nor a <br> placeholder) should be there"); 19 Markup.dump("test", "'two' and 'three' should appear as <li> after 'four' an d no empty <li> (nor a <br> placeholder) should be there");
20 } 20 }
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698