OLD | NEW |
1 Tests that the CharacterData API arguments are correctly validated. | 1 Tests that the CharacterData API arguments are correctly validated. |
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 text.data is "abcd" | 6 PASS text.data is "abcd" |
7 PASS text.__proto__.__proto__ is CharacterData.prototype | 7 PASS text.__proto__.__proto__ is CharacterData.prototype |
8 PASS text.appendData('efg') did not throw exception. | 8 PASS text.appendData('efg') did not throw exception. |
9 PASS text.data is "abcdefg" | 9 PASS text.data is "abcdefg" |
10 PASS text.appendData() threw exception TypeError: Not enough arguments. | 10 PASS text.appendData() threw exception TypeError: Not enough arguments. |
11 PASS text.data is "abcdefg" | 11 PASS text.data is "abcdefg" |
12 PASS text.insertData(0, 'abcd') did not throw exception. | 12 PASS text.insertData(0, 'abcd') did not throw exception. |
13 PASS text.data is "abcdefg" | 13 PASS text.data is "abcdefg" |
14 PASS text.insertData() threw exception TypeError: Not enough arguments. | 14 PASS text.insertData() threw exception TypeError: Not enough arguments. |
15 PASS text.data is "abcdefg" | 15 PASS text.data is "abcdefg" |
16 PASS text.insertData(0) threw exception TypeError: Not enough arguments. | 16 PASS text.insertData(0) threw exception TypeError: Not enough arguments. |
17 PASS text.data is "abcdefg" | 17 PASS text.data is "abcdefg" |
18 PASS text.insertData(999, 'test') threw exception IndexSizeError: Index or size
was negative, or greater than the allowed value.. | 18 PASS text.insertData(999, 'test') threw exception IndexSizeError: Index or size
was negative, or greater than the allowed value.. |
19 PASS text.data is "abcdefg" | 19 PASS text.data is "abcdefg" |
20 PASS text.insertData(-4294967294, 'test') did not throw exception. | 20 PASS text.insertData(-4294967294, 'test') did not throw exception. |
21 PASS text.data is "abtestcdefg" | 21 PASS text.data is "abtestcdefg" |
22 PASS text.deleteData(4, 3) did not throw exception. | 22 PASS text.deleteData(4, 3) did not throw exception. |
23 PASS text.data is "abcd" | 23 PASS text.data is "abcd" |
24 PASS text.deleteData() threw exception TypeError: Not enough arguments. | 24 PASS text.deleteData() threw exception TypeError: Not enough arguments. |
25 PASS text.data is "abcd" | 25 PASS text.data is "abcd" |
26 PASS text.deleteData(0) threw exception TypeError: Not enough arguments. | 26 PASS text.deleteData(0) threw exception TypeError: Not enough arguments. |
27 PASS text.data is "abcd" | 27 PASS text.data is "abcd" |
28 PASS text.deleteData(999, 3) threw exception IndexSizeError: Index or size was n
egative, or greater than the allowed value.. | 28 PASS text.deleteData(999, 3) threw exception IndexSizeError: Index or size was n
egative, or greater than the allowed value.. |
29 PASS text.data is "abcd" | 29 PASS text.data is "abcd" |
| 30 PASS text.deleteData(-1, 3) threw exception IndexSizeError: Index or size was ne
gative, or greater than the allowed value.. |
| 31 PASS text.data is "abcd" |
30 PASS text.deleteData(-4294967294, 2) did not throw exception. | 32 PASS text.deleteData(-4294967294, 2) did not throw exception. |
31 PASS text.data is "ab" | 33 PASS text.data is "ab" |
32 PASS text.deleteData(1, 999) did not throw exception. | 34 PASS text.deleteData(1, 999) did not throw exception. |
33 PASS text.data is "a" | 35 PASS text.data is "a" |
34 PASS text.replaceData(0, 0, 'abcd') did not throw exception. | 36 PASS text.replaceData(0, 0, 'abcd') did not throw exception. |
35 PASS text.data is "abcdefg" | 37 PASS text.data is "abcdefg" |
36 PASS text.replaceData() threw exception TypeError: Not enough arguments. | 38 PASS text.replaceData() threw exception TypeError: Not enough arguments. |
37 PASS text.data is "abcdefg" | 39 PASS text.data is "abcdefg" |
38 PASS text.replaceData(0) threw exception TypeError: Not enough arguments. | 40 PASS text.replaceData(0) threw exception TypeError: Not enough arguments. |
39 PASS text.data is "abcdefg" | 41 PASS text.data is "abcdefg" |
40 PASS text.replaceData(0, 0) threw exception TypeError: Not enough arguments. | 42 PASS text.replaceData(0, 0) threw exception TypeError: Not enough arguments. |
41 PASS text.data is "abcdefg" | 43 PASS text.data is "abcdefg" |
42 PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Index or s
ize was negative, or greater than the allowed value.. | 44 PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Index or s
ize was negative, or greater than the allowed value.. |
43 PASS text.data is "abcdefg" | 45 PASS text.data is "abcdefg" |
| 46 PASS text.replaceData(-1, 3, 'test') threw exception IndexSizeError: Index or si
ze was negative, or greater than the allowed value.. |
| 47 PASS text.data is "abcdefg" |
44 PASS text.replaceData(-4294967294, 0, 'test') did not throw exception. | 48 PASS text.replaceData(-4294967294, 0, 'test') did not throw exception. |
45 PASS text.data is "abtestcdefg" | 49 PASS text.data is "abtestcdefg" |
46 PASS text.replaceData(1, 999, 'aaa') did not throw exception. | 50 PASS text.replaceData(1, 999, 'aaa') did not throw exception. |
47 PASS text.data is "aaaa" | 51 PASS text.data is "aaaa" |
| 52 PASS text.substringData(4, 3) is "efg" |
| 53 PASS text.substringData(4, 999) is "efg" |
| 54 PASS text.substringData(-1, 2) threw exception IndexSizeError: Index or size was
negative, or greater than the allowed value.. |
| 55 PASS text.substringData(-4294967294, 3) is "cde" |
48 PASS successfullyParsed is true | 56 PASS successfullyParsed is true |
49 | 57 |
50 TEST COMPLETE | 58 TEST COMPLETE |
51 | 59 |
OLD | NEW |