Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / deleting / pruning-after-merge-2.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests to see if deletion correctly prunes the containers of the paragraph being moved during a merge.  You should see 'foo<b>bar</b>' below.</p>
6
7 <div id="test" contenteditable="true"><div>foo</div><div style="border: 1px solid blue; padding: 5px; font-weight: bold;"><div style="border: 1px solid red; padding: 5px">bar</div></div></div>
8
9 <script>
10 var e = document.getElementById("test");
11 var s = window.getSelection();
12 s.setPosition(e, 0);
13 s.modify("move", "forward", "line");
14
15 document.execCommand("Delete");
16
17 </script>