Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / input / paste-text-ending-with-interchange-newline.html
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>
10
11 if (window.testRunner)
12     testRunner.dumpAsText();
13
14 document.querySelector('textarea').focus();
15 document.execCommand('SelectAll', false, null);
16 document.execCommand('Copy', false, null);
17
18 var input = document.querySelector('input');
19 input.focus();
20 document.execCommand('Paste', false, null);
21
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);
24
25 </script>
26 </body>
27 </html>