1 Tests for tooLong flag with <input> elements.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 No maxlength and no value
7 PASS input.validity.tooLong is false
10 PASS input.value.length is 5
11 PASS input.validity.tooLong is false
12 PASS input.value.length is 6
13 PASS input.validity.tooLong is false
15 Dirty value and longer than maxLength
16 PASS input.value.length is 4
17 PASS input.validity.tooLong is true
18 PASS input.validity.tooLong is false
20 Sets a value via DOM property
21 PASS input.validity.tooLong is false
23 Disabling makes the control valid
24 PASS input.validity.tooLong is true
25 PASS input.disabled = true; input.validity.tooLong is false
26 PASS input.disabled = false; input.validity.tooLong is true
28 Grapheme length is not greater than maxLength though character length is greater
29 PASS input.validity.tooLong is false
31 Change the type with a too long value
32 PASS input.validity.tooLong is true
33 PASS input.type = "number"; input.validity.tooLong is false
35 minlength and maxlength together
36 PASS input.validity.tooLong is true
37 PASS input.validity.tooShort is false
38 PASS input.validity.tooLong is false
39 PASS input.validity.tooShort is false
40 PASS input.validity.tooLong is false
41 PASS input.validity.tooShort is true
43 minlength and maxlength clashing
44 PASS input.validity.tooLong is true
45 PASS input.validity.tooShort is false
46 PASS input.validity.tooLong is true
47 PASS input.validity.tooShort is true
48 PASS input.validity.tooLong is false
49 PASS input.validity.tooShort is true
50 PASS input.validity.tooLong is false
51 PASS input.validity.tooShort is false
52 PASS successfullyParsed is true