Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / input / paste-text-ending-with-interchange-newline.html
blobc2cdd29a2b54a411686b2a21f148fafe2f34e292
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <textarea>abc
5 def
6 </textarea>
7 <input type="text">
8 <script src="../../resources/dump-as-markup.js"></script>
9 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 document.querySelector('textarea').focus();
15 document.execCommand('SelectAll', false, null);
16 document.execCommand('Copy', false, null);
18 var input = document.querySelector('input');
19 input.focus();
20 document.execCommand('Paste', false, null);
22 Markup.description("This tests pasting a text with an interchange new line at the end. WebKit shouldn't insert a new line.");
23 Markup.dump(input);
25 </script>
26 </body>
27 </html>