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

Unified Diff: LayoutTests/fast/forms/textarea-maxlength-expected.txt

Issue 22590003: input/textarea: Count value length with the standard way. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comment in a test Created 7 years, 4 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 | « LayoutTests/fast/forms/textarea-maxlength.html ('k') | Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/textarea-maxlength-expected.txt
diff --git a/LayoutTests/fast/forms/textarea-maxlength-expected.txt b/LayoutTests/fast/forms/textarea-maxlength-expected.txt
index 164d878a840b7b051857309ffcbc197d38186a99..2b158074f44c9e6827646a1533e14ea1d7bb9f59 100644
--- a/LayoutTests/fast/forms/textarea-maxlength-expected.txt
+++ b/LayoutTests/fast/forms/textarea-maxlength-expected.txt
@@ -23,11 +23,13 @@ PASS textArea.value is "abcde"
PASS textArea.value is "A\nB"
PASS textArea.value is "a\n\n"
PASS textArea.value is "\n\n\n"
-PASS textArea.value is "AB" + fancyX
-PASS textArea.value.length is 5
+Inserts 2 normal characters + a combining letter with 3 code points into a maxlength=3 element.
+PASS textArea.value is "ABx"
+PASS textArea.value.length is 3
PASS textArea.value is "ABC"
-PASS textArea.value is "AB" + u10000
-PASS textArea.value.length is 4
+Inserts 2 normal characters + one surrogate pair into a maxlength=3 element
+PASS textArea.value is "AB"
+PASS textArea.value.length is 2
PASS textArea.value is "ABC"
PASS textArea.value is ""
PASS textArea.value is "ABC"
« no previous file with comments | « LayoutTests/fast/forms/textarea-maxlength.html ('k') | Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698