Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / processing-instruction-inherit-characterdata.xhtml
blob2a801522896ffa942f4afdfc20a5119a29469b6f
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 <![CDATA[
8 description("Test that ProcessingInstruction inherits from CharacterData");
10 shouldBe("ProcessingInstruction.__proto__", "CharacterData");
11 shouldBe("ProcessingInstruction.prototype.__proto__", "CharacterData.prototype");
13 var processingInstruction = document.createProcessingInstruction("target", "data");
14 shouldBe("processingInstruction.__proto__.__proto__", "CharacterData.prototype");
16 shouldBeEqualToString("processingInstruction.target", "target");
17 shouldBeEqualToString("processingInstruction.data", "data");
18 shouldBe("processingInstruction.length", "4");
20 processingInstruction.data = null;
21 shouldBeEqualToString("processingInstruction.data", "");
22 shouldBe("processingInstruction.length", "0");
23 ]]>
24 </script>
25 </body>
26 </html>