Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / cleanup-on-move.html
blob1ca9f5b670cc4baf99f1a5c0e60880342886660e
1 <!DOCTYPE html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <script src="resources/select-and-drag.js"></script>
6 <div contenteditable="true">
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>
9 </ol>
10 </div>
12 <script>
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");
21 </script>
22 </body>
23 </html>