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

Side by Side Diff: LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html

Issue 113663003: Keep br while replacing plain texts with content ending with newline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use "" for html code Created 6 years, 11 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/pasteboard/paste-newline-in-all-selected-textarea-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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <textarea id="test" cols=5 rows=4>
5 This test verifies that pasting a newline in a textarea with all text selected
6 produces a newline.
7
8 </textarea>
9 <script src="../../resources/js-test.js"></script>
10 <script>
11 var textarea = document.getElementById('test');
12 textarea.focus();
13
14 // copy a new line
15 textarea.setSelectionRange(99, 100);
16 document.execCommand('Copy');
17
18 document.execCommand('SelectAll');
19 document.execCommand('Paste');
20 shouldBeEqualToString('textarea.value', '\n');
21 </script>
22 </body>
23 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698