Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / list-item-1.html
blob12982fe27b13a72d6e173b4a72055bc61b0e4816
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <body>
6 <p>This test deletes the contents of a sub-list. Then it deletes the empty list item. The list item below it should remain.</p>
7 <div id="div" contentEditable="true"><ul><ul><li>foo</li></ul><li><br></li></ul></div>
9 <script>
10 if (window.internals)
11 internals.settings.setEditingBehavior('mac');
12 var div = document.getElementById("div");
13 var sel = window.getSelection();
15 sel.collapse(div, 0);
16 sel.modify("extend", "forward", "word");
17 document.execCommand("Delete");
18 document.execCommand("Delete");
19 </script>
20 </body>