OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-32791A
2F" /> | |
5 <script src="../js/resources/js-test-pre.js"></script> | |
6 </head> | |
7 <body> | |
8 <script> | |
9 description("Tests that CharacterData.appendData() argument is mandatory."); | |
10 | |
11 var text = document.createTextNode("abcd"); | |
12 shouldBeEqualToString("text.data", "abcd"); | |
13 shouldBe("text.__proto__.__proto__", "CharacterData.prototype"); | |
14 shouldNotThrow("text.appendData('efg')"); | |
15 shouldBeEqualToString("text.data", "abcdefg"); | |
16 shouldThrow("text.appendData()", "'TypeError: Not enough arguments'"); // Missin
g argument. | |
17 shouldBeEqualToString("text.data", "abcdefg"); | |
18 </script> | |
19 <script src="../js/resources/js-test-post.js"></script> | |
20 </body> | |
21 </html> | |
OLD | NEW |