Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-text-011.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../editing.js"></script>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7
8 Markup.waitUntilDone();
9
10 function editingTest() {
11     document.body.focus();
12     window.getSelection().setPosition(document.body, 0);
13
14     if (window.testRunner)
15         testRunner.dumpEditingCallbacks();
16
17     Markup.description('There was a bug when pasting at the end of the block.\n'+
18     'The content was inserted at the start of the block instead of the end. This tests the insert-at-end case.');
19
20     selectAllCommand();
21     copyCommand();
22     moveSelectionForwardByCharacterCommand();
23     insertParagraphCommand();
24     pasteCommand();
25
26     Markup.dump(document.body);
27     Markup.notifyDone();
28 }
29
30 </script>
31 </head> 
32 <body contenteditable id="test" onload="editingTest()">
33 <p><font face="Monaco"><b>hello</b></font></p>
34 <p><font face="Monaco"><b>there</b></font></p>
35 </body>
36 </html>