1 Tests for tooShort flag with <input> elements.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 No minlength and no value
7 PASS input.validity.tooShort is false
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
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
25 Sets a value via DOM property
26 PASS input.validity.tooShort is false
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
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