Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Document / createCDATASection.html
blob69354e4d60b7be0ce28d65836e972b7cee622254
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 window.xmlDoc = document.implementation.createDocument(null, "example", null);
9 shouldBe('"createCDATASection" in window.xmlDoc', 'true');
10 shouldBeEqualToString('window.xmlDoc.createCDATASection("Hello").data', "Hello");
11 shouldThrow('window.xmlDoc.createCDATASection("Ha]]>o")');
12 shouldBeEqualToString('window.xmlDoc.createCDATASection(null).data', "null");
13 </script>
14 </body>
15 </html>