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

Unified Diff: LayoutTests/fast/forms/ValidityState-tooShort-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-tooShort-textarea-expected.txt
diff --git a/LayoutTests/fast/forms/ValidityState-tooShort-textarea-expected.txt b/LayoutTests/fast/forms/ValidityState-tooShort-textarea-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3784b361fbc2c43401235ceb299f967dee5fd6e9
--- /dev/null
+++ b/LayoutTests/fast/forms/ValidityState-tooShort-textarea-expected.txt
@@ -0,0 +1,46 @@
+Tests for tooShort flag with <textarea> elements.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+No minlength and no value
+PASS textarea.validity.tooShort is false
+
+Non-dirty value
+PASS textarea.value.length is 2
+PASS textarea.validity.tooShort is false
+PASS textarea.value.length is 1
+PASS textarea.validity.tooShort is false
+
+Dirty value and longer than minLength
+PASS textarea.value.length is 1
+PASS textarea.validity.tooShort is true
+PASS textarea.value.length is 0
+PASS textarea.validity.tooShort is false
+PASS textarea.value.length is 2
+PASS textarea.validity.tooShort is true
+PASS textarea.value.length is 3
+PASS textarea.validity.tooShort is false
+
+Sets a value via DOM property
+PASS textarea.validity.tooShort is false
+
+Disabling makes the control valid
+PASS textarea.validity.tooShort is true
+PASS textarea.disabled = true; textarea.validity.tooShort is false
+PASS textarea.disabled = false; textarea.validity.tooShort is true
+
+A value set by resetting a form doesn't make tooShort true.
+PASS textarea.validity.tooShort is true
+PASS textarea.value is "ab"
+PASS textarea.validity.tooShort is false
+
+A value set by a child node change doesn't make tooShort true.
+PASS textarea.validity.tooShort is false
+PASS textarea.value is "a"
+PASS textarea.validity.tooShort is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
+

Powered by Google App Engine
This is Rietveld 408576698