OLD | NEW |
1 Tests for HTMLTextAreaElement.maxLength behaviors. | 1 Tests for HTMLTextAreaElement.maxLength behaviors. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS textArea.maxLength is -1 | 6 PASS textArea.maxLength is -1 |
7 PASS textArea.maxLength is -1 | 7 PASS textArea.maxLength is -1 |
8 PASS textArea.maxLength is -1 | 8 PASS textArea.maxLength is -1 |
9 PASS textArea.maxLength is 1 | 9 PASS textArea.maxLength is 1 |
10 PASS textArea.maxLength is 256 | 10 PASS textArea.maxLength is 256 |
11 PASS textArea.getAttribute("maxlength") is "13" | 11 PASS textArea.getAttribute("maxlength") is "13" |
12 PASS textArea.maxLength = -1 threw exception Error: IndexSizeError: DOM Exceptio
n 1. | 12 PASS textArea.maxLength = -1 threw exception IndexSizeError: Index or size was n
egative, or greater than the allowed value.. |
13 PASS textArea.getAttribute("maxlength") is "13" | 13 PASS textArea.getAttribute("maxlength") is "13" |
14 PASS textArea.maxLength is 0 | 14 PASS textArea.maxLength is 0 |
15 PASS textArea.getAttribute("maxlength") is "0" | 15 PASS textArea.getAttribute("maxlength") is "0" |
16 PASS textArea.value is "abcd" | 16 PASS textArea.value is "abcd" |
17 PASS textArea.value is "abcde" | 17 PASS textArea.value is "abcde" |
18 PASS textArea.value is "abc" | 18 PASS textArea.value is "abc" |
19 PASS textArea.value is "abc" | 19 PASS textArea.value is "abc" |
20 PASS textArea.value is "def" | 20 PASS textArea.value is "def" |
21 PASS textArea.value is "abcdef" | 21 PASS textArea.value is "abcdef" |
22 PASS textArea.value is "abcde" | 22 PASS textArea.value is "abcde" |
23 PASS textArea.value is "A\nB" | 23 PASS textArea.value is "A\nB" |
24 PASS textArea.value is "a\n\n" | 24 PASS textArea.value is "a\n\n" |
25 PASS textArea.value is "\n\n\n" | 25 PASS textArea.value is "\n\n\n" |
26 PASS textArea.value is "AB" + fancyX | 26 PASS textArea.value is "AB" + fancyX |
27 PASS textArea.value.length is 5 | 27 PASS textArea.value.length is 5 |
28 PASS textArea.value is "ABC" | 28 PASS textArea.value is "ABC" |
29 PASS textArea.value is "AB" + u10000 | 29 PASS textArea.value is "AB" + u10000 |
30 PASS textArea.value.length is 4 | 30 PASS textArea.value.length is 4 |
31 PASS textArea.value is "ABC" | 31 PASS textArea.value is "ABC" |
32 PASS textArea.value is "" | 32 PASS textArea.value is "" |
33 PASS textArea.value is "ABC" | 33 PASS textArea.value is "ABC" |
34 PASS textArea.value is "ABC" | 34 PASS textArea.value is "ABC" |
35 PASS successfullyParsed is true | 35 PASS successfullyParsed is true |
36 | 36 |
37 TEST COMPLETE | 37 TEST COMPLETE |
38 | 38 |
OLD | NEW |