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

Unified 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: Update code as per second review comments 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html
diff --git a/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html b/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html
new file mode 100644
index 0000000000000000000000000000000000000000..1d07e3ab970aabbdcaf2d02bd010f50fb3abe2dc
--- /dev/null
+++ b/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<body>
+<textarea id='test' cols=5 rows=4>
+test
+
+</textarea>
+<script src='../../resources/js-test.js'></script>
+<script>
+var textarea = document.getElementById('test');
+textarea.focus();
+
+// copy a new line
+textarea.setSelectionRange(4, 5);
+document.execCommand('copy');
+
+document.execCommand('SelectAll');
+document.execCommand('paste');
+shouldBeEqualToString('textarea.value', '\n');
leviw_travelin_and_unemployed 2014/01/07 19:48:10 It would be nice if you added a description of wha
ziran.sun 2014/01/08 11:58:53 Done.
+</script>
+</body>
+</html>
« 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