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

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: remove wrongly name test file Created 7 years 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 test
6
7 </textarea>
8 <script src="../../resources/js-test.js"></script>
9 <script>
10 var textarea = document.getElementById("test");
11 textarea.focus();
12
13 // copy a new line
14 textarea.setSelectionRange(4, 5);
15 document.execCommand("copy");
16
17 document.execCommand("SelectAll");
18 document.execCommand("paste");
19 shouldBeEqualToString('textarea.value', '\n');
yosin_UTC9 2014/01/06 06:05:07 nit: Please use one kind of quote in JavaScript. W
ziran.sun 2014/01/07 17:36:32 Done.
20 </script>
21 </body>
22 </html>
23
yosin_UTC9 2014/01/06 06:05:07 nit: Please remove this extra blank line.
ziran.sun 2014/01/07 17:36:32 Done.
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