Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / deleting / merge-lists.html
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>
20