Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / DOMImplementation / createDocument-XMLDocument.html
blobfe92f80dd717e0928d7cb47b5b6551f4807de3d0
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description('Check that DOMImplementation.createDocument() returns an XMLDocument.');
10 shouldBeEqualToString('window.XMLDocument.name', 'XMLDocument');
11 shouldBe('XMLDocument.prototype.__proto__', 'Document.prototype');
13 shouldBe('document.implementation.createDocument("", "").__proto__', 'XMLDocument.prototype');
14 shouldBe('document.implementation.createDocument("", "html").__proto__', 'XMLDocument.prototype');
15 shouldBe('document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html").__proto__', 'XMLDocument.prototype');
16 shouldBe('document.implementation.createDocument("http://www.w3.org/2000/xmlns/", "xmlns:test").__proto__', 'XMLDocument.prototype');
17 // FIXME: This is not passing yet, this currently returns an SVGDocument which is no longer part of SVG2.
18 shouldBe('document.implementation.createDocument("http://www.w3.org/2000/svg", "svg").__proto__', 'XMLDocument.prototype');
19 </script>
20 </body>
21 </html>