Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / merge-lists.html
blob25a630a7440bd95768b03fe7c6d69316f0d10cbb
1 <!DOCTYPE>
2 <html>
3 <body>
4 <p id="description">Placing cursor at the end of first list and executing forward delete should merge the second list with the first one.</p>
5 <div contenteditable>
6 <ol><li>one</li><li>two</li><li id="li">three</li></ol>
7 <ol><li>four</li><li>five</li><li>six</li></ol>
8 </div>
9 <script src="../../resources/dump-as-markup.js"></script>
10 <script>
11 var li = document.getElementById("li");
12 var selection = window.getSelection();
13 selection.collapse(li, li.childNodes.length);
14 document.execCommand("forwardDelete");
15 Markup.description(document.getElementById('description').textContent);
16 Markup.dump(document.querySelector('div'));
17 </script>
18 </body>
19 </html>