OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <script> | 6 <script> |
7 <![CDATA[ | 7 <![CDATA[ |
8 description("Test that ProcessingInstruction inherits from CharacterData"); | 8 description("Test that ProcessingInstruction inherits from CharacterData"); |
9 | 9 |
10 shouldBe("ProcessingInstruction.__proto__", "CharacterData"); | 10 shouldBe("ProcessingInstruction.__proto__", "CharacterData"); |
11 shouldBe("ProcessingInstruction.prototype.__proto__", "CharacterData.prototype")
; | 11 shouldBe("ProcessingInstruction.prototype.__proto__", "CharacterData.prototype")
; |
12 | 12 |
13 var processingInstruction = document.createProcessingInstruction("target", "data
"); | 13 var processingInstruction = document.createProcessingInstruction("target", "data
"); |
14 shouldBe("processingInstruction.__proto__.__proto__", "CharacterData.prototype")
; | 14 shouldBe("processingInstruction.__proto__.__proto__", "CharacterData.prototype")
; |
15 | 15 |
16 shouldBeEqualToString("processingInstruction.target", "target"); | 16 shouldBeEqualToString("processingInstruction.target", "target"); |
17 shouldBeEqualToString("processingInstruction.data", "data"); | 17 shouldBeEqualToString("processingInstruction.data", "data"); |
18 shouldBe("processingInstruction.length", "4"); | 18 shouldBe("processingInstruction.length", "4"); |
19 | 19 |
20 processingInstruction.data = null; | 20 processingInstruction.data = null; |
21 shouldBeEqualToString("processingInstruction.data", ""); | 21 shouldBeEqualToString("processingInstruction.data", ""); |
22 shouldBe("processingInstruction.length", "0"); | 22 shouldBe("processingInstruction.length", "0"); |
23 ]]> | 23 ]]> |
24 </script> | 24 </script> |
25 <script src="../js/resources/js-test-post.js"></script> | |
26 </body> | 25 </body> |
27 </html> | 26 </html> |
OLD | NEW |