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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 Tests for tooShort flag with <input> elements.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 No minlength and no value
7 PASS input.validity.tooShort is false
8
9 Non-dirty value
10 PASS input.value.length is 2
11 PASS input.validity.tooShort is false
12 PASS input.value.length is 1
13 PASS input.validity.tooShort is false
14
15 Dirty value and longer than minLength
16 PASS input.value.length is 1
17 PASS input.validity.tooShort is true
18 PASS input.value.length is 0
19 PASS input.validity.tooShort is false
20 PASS input.value.length is 2
21 PASS input.validity.tooShort is true
22 PASS input.value.length is 3
23 PASS input.validity.tooShort is false
24
25 Sets a value via DOM property
26 PASS input.validity.tooShort is false
27
28 Disabling makes the control valid
29 PASS input.validity.tooShort is true
30 PASS input.disabled = true; input.validity.tooShort is false
31 PASS input.disabled = false; input.validity.tooShort is true
32
33 Change the type with a too long value
34 PASS input.validity.tooShort is true
35 PASS input.type = "number"; input.validity.tooShort is false
36 PASS successfullyParsed is true
37
38 TEST COMPLETE
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698