4 <script src=
"../../resources/dump-as-markup.js"></script>
5 <script src=
"resources/select-and-drag.js"></script>
6 <div contenteditable=
"true">
8 <li id=
"one">one
</li><li id=
"two">two
</li><li id=
"three">three
</li><li id=
"four">four
</li>
13 Markup
.description('This test drags a selection of a couple of <li> and drops them after another <li> in the same list. It verifies that no empty <li> (actually with a <br> inside) are left after the moving operation.');
15 if (window
.testRunner
) {
16 selectListItems("two", "three", 5);
17 Markup
.dump("test", "The original list looks like this. 'two' and 'three' are selected and are going to be dropped after 'four'");
18 dragSelectionToTarget("two", "four");
19 Markup
.dump("test", "'two' and 'three' should appear as <li> after 'four' and no empty <li> (nor a <br> placeholder) should be there");