OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Test deleteData() + replaceData() overflow handling."); | 8 description("Test deleteData() + replaceData() overflow handling."); |
9 | 9 |
10 var textNode; | 10 var textNode; |
(...skipping 17 matching lines...) Expand all Loading... |
28 shouldBe("range.endOffset", "6"); | 28 shouldBe("range.endOffset", "6"); |
29 document.body.removeChild(textNode); | 29 document.body.removeChild(textNode); |
30 | 30 |
31 shouldBeNonNull("textNode = new Text('hello world'); textNode"); | 31 shouldBeNonNull("textNode = new Text('hello world'); textNode"); |
32 shouldBeEqualToString("textNode.replaceData(6, -1, 'bob'); textNode.data", "hell
o bob"); | 32 shouldBeEqualToString("textNode.replaceData(6, -1, 'bob'); textNode.data", "hell
o bob"); |
33 shouldBeNonNull("textNode = new Text('hello world'); textNode"); | 33 shouldBeNonNull("textNode = new Text('hello world'); textNode"); |
34 shouldBeEqualToString("textNode.replaceData(6, -2, 'bob'); textNode.data", "hell
o bob"); | 34 shouldBeEqualToString("textNode.replaceData(6, -2, 'bob'); textNode.data", "hell
o bob"); |
35 </script> | 35 </script> |
36 </body> | 36 </body> |
37 </html> | 37 </html> |
OLD | NEW |