Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 4076267-3.html
blob5d6811ce199e69d16a3382a14897109dcb411400
1 <html>
2 <head>
4 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
6 <script>
8 function editingTest() {
9 for(i = 1; i <= 10; i++) {
10 typeCharacterCommand('x');
11 for(j = 1; j <= i; j++)
12 typeCharacterCommand(' ');
13 typeCharacterCommand('x');
14 for(k = 1; k <= i; k++)
15 extendSelectionBackwardByCharacterCommand();
16 extendSelectionBackwardByCharacterCommand();
17 extendSelectionBackwardByCharacterCommand();
18 copyCommand();
19 deleteCommand();
20 pasteAndMatchStyleCommand();
21 typeCharacterCommand('\n');
25 </script>
27 <title>Pasting plain text with varying amounts of whitespace</title>
28 </head>
29 <body>
31 <p>This tests to see if spaces are lost during a copy/paste</p>
33 <hr>
35 <div id="test" contenteditable="true"><br></div>
37 <script>
38 runEditingTest();
39 </script>
41 </body>
42 </html>