Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: LayoutTests/editing/input/paste-text-ending-with-interchange-newline.html

Issue 9555006: Merge 108668 - REGRESSION(r99076): WebKit pastes the trailing newline into a single-line text field (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/input/paste-text-ending-with-interchange-newline-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/input/paste-text-ending-with-interchange-newline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698