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. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 PASS text.data is "abcdefg" | 43 PASS text.data is "abcdefg" |
44 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.. |
45 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.. | 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" | 47 PASS text.data is "abcdefg" |
48 PASS text.replaceData(-4294967294, 0, 'test') did not throw exception. | 48 PASS text.replaceData(-4294967294, 0, 'test') did not throw exception. |
49 PASS text.data is "abtestcdefg" | 49 PASS text.data is "abtestcdefg" |
50 PASS text.replaceData(1, 999, 'aaa') did not throw exception. | 50 PASS text.replaceData(1, 999, 'aaa') did not throw exception. |
51 PASS text.data is "aaaa" | 51 PASS text.data is "aaaa" |
52 PASS text.substringData(4, 3) is "efg" | 52 PASS text.substringData(4, 3) is "efg" |
| 53 PASS text.substringData() threw exception TypeError: Not enough arguments. |
| 54 PASS text.substringData(0) threw exception TypeError: Not enough arguments. |
53 PASS text.substringData(4, 999) is "efg" | 55 PASS text.substringData(4, 999) is "efg" |
| 56 PASS text.substringData(4, -1) is "efg" |
54 PASS text.substringData(-1, 2) threw exception IndexSizeError: Index or size was
negative, or greater than the allowed value.. | 57 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" | 58 PASS text.substringData(-4294967294, 3) is "cde" |
56 PASS successfullyParsed is true | 59 PASS successfullyParsed is true |
57 | 60 |
58 TEST COMPLETE | 61 TEST COMPLETE |
59 | 62 |
OLD | NEW |