Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / deleting / merge-different-styles.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This places the caret before the 'b' in 'bar' and Deletes.  'foo' and 'bar' should end up on the same line, but neither should change style.</p>
6 <div contenteditable="true">
7 <div>foo</div>
8 <div id="test" style="font-weight:bold">bar</div>
9 </div>
10
11 <script>
12 var s = window.getSelection();
13 var e = document.getElementById("test");
14 s.setPosition(e, 0);
15 document.execCommand("Delete");
16 </script>