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

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

Issue 435753003: Implement minlength for <input> and <textarea>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests for minlength & maxlength together; fix comments Created 6 years, 2 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: LayoutTests/fast/forms/ValidityState-tooLong-textarea-expected.txt
diff --git a/LayoutTests/fast/forms/ValidityState-tooLong-textarea-expected.txt b/LayoutTests/fast/forms/ValidityState-tooLong-textarea-expected.txt
index 6cef33c4d21991d8d3b9ff51d8cdf23cfec265de..b0a987f8c7bdc27e49826ec81f5432cb25d2f651 100644
--- a/LayoutTests/fast/forms/ValidityState-tooLong-textarea-expected.txt
+++ b/LayoutTests/fast/forms/ValidityState-tooLong-textarea-expected.txt
@@ -20,8 +20,10 @@ PASS textarea.validity.tooLong is false
Sets a value via DOM property
PASS textarea.validity.tooLong is false
-Disabled
-PASS textarea.validity.tooLong is false
+Disabling makes the control valid
+PASS textarea.validity.tooLong is true
+PASS textarea.disabled = true; textarea.validity.tooLong is false
+PASS textarea.disabled = false; textarea.validity.tooLong is true
Grapheme length is not greater than maxLength though character length is greater
PASS textarea.validity.tooLong is false
@@ -35,6 +37,24 @@ A value set by a child node change doesn't make tooLong true.
PASS textarea.validity.tooLong is false
PASS textarea.value is "abcdef"
PASS textarea.validity.tooLong is false
+
+minlength and maxlength together
+PASS textarea.validity.tooLong is true
+PASS textarea.validity.tooShort is false
+PASS textarea.validity.tooLong is false
+PASS textarea.validity.tooShort is false
+PASS textarea.validity.tooLong is false
+PASS textarea.validity.tooShort is true
+
+minlength and maxlength clashing
+PASS textarea.validity.tooLong is true
+PASS textarea.validity.tooShort is false
+PASS textarea.validity.tooLong is true
+PASS textarea.validity.tooShort is true
+PASS textarea.validity.tooLong is false
+PASS textarea.validity.tooShort is true
+PASS textarea.validity.tooLong is false
+PASS textarea.validity.tooShort is false
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698