Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / pasteboard / merge-end-table.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This tests pasting a table into a position that would normally result in an end merge.</p>
5 <div id="test1" contenteditable="true">xx</div>
6 <script src="../../resources/dump-as-markup.js"></script>
7 <script src="../editing.js"></script>
8 <script>
9 if (window.testRunner)
10     testRunner.dumpEditingCallbacks();
11
12 var e = document.getElementById("test1");
13 var s = window.getSelection();
14
15 Markup.description(document.querySelector('p').textContent);
16 Markup.dump(e, 'Before insertion');
17
18 setSelectionCommand(e, 0, e, 0);
19 moveSelectionForwardByCharacterCommand();
20 insertHTMLCommand("<table border='1'><tr><td>1</td><td>2</td></tr></table>");
21
22 Markup.dump(e, 'After insertion');
23 </script>
24 </body>
25 </html>