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

Unified Diff: LayoutTests/fast/forms/ValidityState-tooShort-input-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-input-expected.txt
diff --git a/LayoutTests/fast/forms/ValidityState-tooShort-input-expected.txt b/LayoutTests/fast/forms/ValidityState-tooShort-input-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..9b58ee362fb3e1ef7a208efdf74cfb55defcc6ac
--- /dev/null
+++ b/LayoutTests/fast/forms/ValidityState-tooShort-input-expected.txt
@@ -0,0 +1,39 @@
+Tests for tooShort flag with <input> elements.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+No minlength and no value
+PASS input.validity.tooShort is false
+
+Non-dirty value
+PASS input.value.length is 2
+PASS input.validity.tooShort is false
+PASS input.value.length is 1
+PASS input.validity.tooShort is false
+
+Dirty value and longer than minLength
+PASS input.value.length is 1
+PASS input.validity.tooShort is true
+PASS input.value.length is 0
+PASS input.validity.tooShort is false
+PASS input.value.length is 2
+PASS input.validity.tooShort is true
+PASS input.value.length is 3
+PASS input.validity.tooShort is false
+
+Sets a value via DOM property
+PASS input.validity.tooShort is false
+
+Disabling makes the control valid
+PASS input.validity.tooShort is true
+PASS input.disabled = true; input.validity.tooShort is false
+PASS input.disabled = false; input.validity.tooShort is true
+
+Change the type with a too long value
+PASS input.validity.tooShort is true
+PASS input.type = "number"; input.validity.tooShort is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698