Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / deleting / merge-unrendered-space.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests deleting the line break before a paragraph that ends with unrendered space.</p>
6 <div id="test" contenteditable="true">foo<br>bar
7 <div>baz</div></div>
8
9 <script type="text/javascript" src="../editing.js"></script>
10 <script>
11 var s = window.getSelection();
12 var e = document.getElementById("test");
13
14 s.setPosition(e, 0);
15 moveSelectionForwardByLineCommand();
16 deleteCommand();
17 </script>