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