| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <textarea>abc | 4 <textarea>abc |
| 5 def | 5 def |
| 6 </textarea> | 6 </textarea> |
| 7 <input type="text"> | 7 <input type="text"> |
| 8 <script src="../../resources/dump-as-markup.js"></script> | 8 <script src="../../resources/dump-as-markup.js"></script> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| 11 if (window.layoutTestController) | 11 if (window.layoutTestController) |
| 12 layoutTestController.dumpAsText(); | 12 layoutTestController.dumpAsText(); |
| 13 | 13 |
| 14 document.querySelector('textarea').focus(); | 14 document.querySelector('textarea').focus(); |
| 15 document.execCommand('SelectAll', false, null); | 15 document.execCommand('SelectAll', false, null); |
| 16 document.execCommand('Copy', false, null); | 16 document.execCommand('Copy', false, null); |
| 17 | 17 |
| 18 var input = document.querySelector('input'); | 18 var input = document.querySelector('input'); |
| 19 input.focus(); | 19 input.focus(); |
| 20 document.execCommand('Paste', false, null); | 20 document.execCommand('Paste', false, null); |
| 21 | 21 |
| 22 Markup.description("This tests pasting a text with an interchange new line at th
e end. WebKit shouldn't insert a new line."); | 22 Markup.description("This tests pasting a text with an interchange new line at th
e end. WebKit shouldn't insert a new line."); |
| 23 Markup.dump(input); | 23 Markup.dump(input); |
| 24 | 24 |
| 25 </script> | 25 </script> |
| 26 </body> | 26 </body> |
| 27 </html> | 27 </html> |
| OLD | NEW |