Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-002.html
blob67626dfee8830f08c19f24f3b2b82c3b657978af
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 </style>
11 </head>
12 <body>
13 <p>This tests copy and pastes "is a tide in the affairs of men,\nWhich taken" twice.</p>
14 <div id="root" contenteditable>
15 <div id="test" class="editing">There is a tide in the affairs of men,</div>
16 <div class="editing">Which taken at the flood leads on to fortune.</div>
17 <div class="editing">Omitted, all the voyage of their life,</div>
18 <div class="editing">Is bound in shallows and in miseries.</div>
19 </div>
20 <script src="../editing.js"></script>
21 <script>
23 function editingTest() {
24 for (i = 0; i < 6; i++)
25 moveSelectionForwardByCharacterCommand();
26 for (i = 0; i < 44; i++)
27 extendSelectionForwardByCharacterCommand();
28 copyCommand();
29 pasteCommand();
30 pasteCommand();
33 runDumpAsTextEditingTest(true);
34 </script>
35 </body>
36 </html>