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

Unified Diff: third_party/WebKit/LayoutTests/editing/input/textarea-white-space-normal-trailing-space.html

Issue 1813663002: Don't collapse whitespace in contenteditable=plaintext-only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/editing/input/textarea-white-space-normal-trailing-space.html
diff --git a/third_party/WebKit/LayoutTests/editing/input/textarea-white-space-normal-trailing-space.html b/third_party/WebKit/LayoutTests/editing/input/textarea-white-space-normal-trailing-space.html
new file mode 100644
index 0000000000000000000000000000000000000000..3697b0570c24c084f24e919b2bfbc030e3127f87
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/input/textarea-white-space-normal-trailing-space.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<textarea style="white-space:normal"></textarea>
+<script>
+// We should be able to type ' ' into a TEXTAREA with white-space:normal,
+// and the result should be identical to another TEXTAREA with
+// white-space:pre-wrap.
+document.querySelector('textarea').focus();
+eventSender.keyDown('a')
+eventSender.keyDown(' ')
+eventSender.keyDown('b')
+eventSender.keyDown(' ')
+</script>

Powered by Google App Engine
This is Rietveld 408576698