Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: LayoutTests/fast/dom/processing-instruction-inherit-characterdata.xhtml

Issue 22911019: [DOM4] Have ProcessingInstruction inherit CharacterData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698