Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-011.html
blobc6fc7650ed3757ef9ad8720e67f8a04e403e14d1
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../editing.js"></script>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
8 Markup.waitUntilDone();
10 function editingTest() {
11 document.body.focus();
12 window.getSelection().collapse(document.body, 0);
14 if (window.testRunner)
15 testRunner.dumpEditingCallbacks();
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.');
20 selectAllCommand();
21 copyCommand();
22 moveSelectionForwardByCharacterCommand();
23 insertParagraphCommand();
24 pasteCommand();
26 Markup.dump(document.body);
27 Markup.notifyDone();
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>