Chromium Code Reviews| 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 shouldBe("text.data", "'abcd'"); | |
|
haraken
2013/07/31 16:04:26
Nit: You can use shouldBeEqualToString()
| |
| 13 shouldBe("text.__proto__.__proto__", "CharacterData.prototype"); | |
| 14 shouldNotThrow("text.appendData('efg')"); | |
| 15 shouldBe("text.data", "'abcdefg'"); | |
|
haraken
2013/07/31 16:04:26
Ditto.
| |
| 16 shouldThrow("text.appendData()", "'TypeError: Not enough arguments'"); // Missin g argument. | |
| 17 shouldBe("text.data", "'abcdefg'"); | |
|
haraken
2013/07/31 16:04:26
Ditto.
| |
| 18 </script> | |
| 19 <script src="../js/resources/js-test-post.js"></script> | |
| 20 </body> | |
| 21 </html> | |
| OLD | NEW |