OLD | NEW |
1 Test deleteData() + replaceData() overflow handling. | 1 Test deleteData() + replaceData() overflow handling. |
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 textNode = new Text('chopped off and then some'); textNode is non-null. | 6 PASS textNode = new Text('chopped off and then some'); textNode is non-null. |
7 PASS textNode.deleteData(11, 0xfffffff7); textNode.data is "chopped off" | 7 PASS textNode.deleteData(11, 0xfffffff7); textNode.data is "chopped off" |
8 PASS range.endOffset is 11 | 8 PASS range.endOffset is 11 |
9 PASS textNode = new Text('hello world'); textNode is non-null. | 9 PASS textNode = new Text('hello world'); textNode is non-null. |
10 PASS textNode.replaceData(6, 0xfffffffe, 'bob'); textNode.data is "hello bob" | 10 PASS textNode.replaceData(6, 0xfffffffe, 'bob'); textNode.data is "hello bob" |
11 PASS range.endOffset is 6 | 11 PASS range.endOffset is 6 |
12 PASS textNode = new Text('hello world'); textNode is non-null. | 12 PASS textNode = new Text('hello world'); textNode is non-null. |
13 PASS textNode.replaceData(6, -1, 'bob'); textNode.data is "hello bob" | 13 PASS textNode.replaceData(6, -1, 'bob'); textNode.data is "hello bob" |
14 PASS textNode = new Text('hello world'); textNode is non-null. | 14 PASS textNode = new Text('hello world'); textNode is non-null. |
15 PASS textNode.replaceData(6, -2, 'bob'); textNode.data is "hello bob" | 15 PASS textNode.replaceData(6, -2, 'bob'); textNode.data is "hello bob" |
16 PASS successfullyParsed is true | 16 PASS successfullyParsed is true |
17 | 17 |
18 TEST COMPLETE | 18 TEST COMPLETE |
19 | 19 |
OLD | NEW |