OLD | NEW |
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> |
OLD | NEW |