1 Tests for tooLong flag with <textarea> elements.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 No maxlength and no value
7 PASS textarea.validity.tooLong is false
10 PASS textarea.value.length is 5
11 PASS textarea.validity.tooLong is false
12 PASS textarea.value.length is 6
13 PASS textarea.validity.tooLong is false
15 Dirty value and longer than maxLength
16 PASS textarea.value.length is 4
17 PASS textarea.validity.tooLong is true
18 PASS textarea.validity.tooLong is false
20 Sets a value via DOM property
21 PASS textarea.validity.tooLong is false
23 Disabling makes the control valid
24 PASS textarea.validity.tooLong is true
25 PASS textarea.disabled = true; textarea.validity.tooLong is false
26 PASS textarea.disabled = false; textarea.validity.tooLong is true
28 Grapheme length is not greater than maxLength though character length is greater
29 PASS textarea.validity.tooLong is false
31 A value set by resetting a form doesn't make tooLong true.
32 PASS textarea.validity.tooLong is true
33 PASS textarea.value is "abcdef"
34 PASS textarea.validity.tooLong is false
36 A value set by a child node change doesn't make tooLong true.
37 PASS textarea.validity.tooLong is false
38 PASS textarea.value is "abcdef"
39 PASS textarea.validity.tooLong is false
41 minlength and maxlength together
42 PASS textarea.validity.tooLong is true
43 PASS textarea.validity.tooShort is false
44 PASS textarea.validity.tooLong is false
45 PASS textarea.validity.tooShort is false
46 PASS textarea.validity.tooLong is false
47 PASS textarea.validity.tooShort is true
49 minlength and maxlength clashing
50 PASS textarea.validity.tooLong is true
51 PASS textarea.validity.tooShort is false
52 PASS textarea.validity.tooLong is true
53 PASS textarea.validity.tooShort is true
54 PASS textarea.validity.tooLong is false
55 PASS textarea.validity.tooShort is true
56 PASS textarea.validity.tooLong is false
57 PASS textarea.validity.tooShort is false
58 PASS successfullyParsed is true