Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-015.html
blob68112b0f7b1289763370a7fde2e4cdfae899136a
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 padding: 12px;
7 font-size: 24px;
9 p {
10 margin: 0;
12 </style>
13 <script src="../editing.js"></script>
14 <script src="../../resources/dump-as-markup.js"></script>
15 <title>Editing Test</title>
16 </head>
17 <body contenteditable>
18 <div id="root">
19 <div id="test" class="editing"><p>foo</p><p>bar</p></div>
20 </div>
21 <script>
23 window.getSelection().collapse(document.getElementById('test'), 0);
25 for (i = 0; i < 7; i++)
26 extendSelectionForwardByCharacterCommand();
27 copyCommand();
28 selectAllCommand();
29 deleteCommand();
30 pasteCommand();
31 insertParagraphCommand();
32 pasteCommand();
34 Markup.description('This test copies, deletes, and paste back <div id="test" class="editing"><p>foo</p><p>bar</p></div>\n'
35 + 'It then inserts the paragraph and pastes the contents again.');
36 Markup.dump('root');
38 </script>
39 </body>
40 </html>