Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / deleting / 5546763.html
1 <p>This tests for a crash when deleting a selection that starts before the first child of a block and ends after the last child (which must be a link) of another block. There shouldn't be any content in the editable region below.</p>
2 <div id="div" contenteditable="true">
3 <div>foo</div>
4 <div>bar <a href="http://www.apple.com/">baz</a></div>
5 </div>
6
7 <script>
8 if (window.testRunner) {
9     window.testRunner.dumpEditingCallbacks();
10     window.testRunner.dumpAsText();
11 }
12 div = document.getElementById("div");
13 div.focus();
14 document.execCommand("SelectAll");
15 document.execCommand("Delete");
16 </script>