Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-016.html
blobbcafddf8030ca512fc72403c4cbd82aca924eeda
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 p {
11 margin: 0;
13 </style>
14 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
16 <script>
18 function editingTest() {
19 for (i = 0; i < 5; i++)
20 moveSelectionForwardByLineCommand();
21 extendSelectionForwardByLineCommand();
22 cutCommand();
23 for (i = 0; i < 5; i++)
24 moveSelectionBackwardByLineCommand();
25 moveSelectionForwardByLineCommand();
26 pasteCommand();
29 </script>
31 <title>Editing Test</title>
32 </head>
33 <body contenteditable style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
35 Fixes this bug:
36 <a href="rdar://problem/3941203">&lt;rdar://problem/3927554&gt;</a> REGRESSION (Mail): Paste inserts content in wrong place
38 <br>***TEST*** line should be second, following the first line.
40 <div style="height: 12px"></div>
42 <div id="root">
43 <div id="test" class="editing"><p>Should be first line of document.<br><br>Another line.</p><p></p>&nbsp;<p></p>&nbsp;<p>***TEST***</p><p><br></p></div>
44 </div>
46 <script>
47 runEditingTest();
48 </script>
50 </body>
51 </html>