AX: AXIsolatedTree::updateChildren sometimes fails to update isolated subtrees when...
[WebKit-https.git] / LayoutTests / editing / deleting / list-item-1.html
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>
8
9 <script>
10 if (window.internals)
11     internals.settings.setEditingBehavior('mac');
12 var div = document.getElementById("div");
13 var sel = window.getSelection();
14
15 sel.setPosition(div, 0);
16 sel.modify("extend", "forward", "word");
17 document.execCommand("Delete");
18 document.execCommand("Delete");
19 </script>
20 </body>