OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 window.xmlDoc = document.implementation.createDocument(null, "example", null); | 8 window.xmlDoc = document.implementation.createDocument(null, "example", null); |
9 shouldBe('"createCDATASection" in window.xmlDoc', 'true'); | 9 shouldBe('"createCDATASection" in window.xmlDoc', 'true'); |
10 shouldBeEqualToString('window.xmlDoc.createCDATASection("Hello").data', "Hello")
; | 10 shouldBeEqualToString('window.xmlDoc.createCDATASection("Hello").data', "Hello")
; |
11 shouldThrow('window.xmlDoc.createCDATASection("Ha]]>o")'); | 11 shouldThrow('window.xmlDoc.createCDATASection("Ha]]>o")'); |
12 shouldBeEqualToString('window.xmlDoc.createCDATASection(null).data', "null"); | 12 shouldBeEqualToString('window.xmlDoc.createCDATASection(null).data', "null"); |
13 </script> | 13 </script> |
14 <script src="../../js/resources/js-test-post.js"></script> | |
15 </body> | 14 </body> |
16 </html> | 15 </html> |
OLD | NEW |