Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Document / clone-node.html
blobcf0b91700a8071ef2af13bab541687b38510b5f6
1 <!DOCTYPE html>
2 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode">
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 description('Tests cloneNode for Document.');
7 function className(object) {
8 return Object.prototype.toString.call(object).slice(8, -1);
11 var doc = document.implementation.createDocument('', 'root', null);
13 shouldBe('doc.cloneNode(false).__proto__', 'XMLDocument.prototype');
14 shouldBeEqualToString('className(doc.cloneNode(false))', 'XMLDocument');
15 shouldBeEqualToString('doc.cloneNode(true).documentElement.localName', 'root');
16 shouldBeEqualToString('doc.cloneNode(true).contentType', 'application/xml');
17 shouldBeEqualToString('document.cloneNode(true).compatMode', 'CSS1Compat');
18 shouldBe('document.cloneNode(false).URL', 'document.URL');
19 shouldBe('document.cloneNode(false).baseURI', 'document.baseURI');
20 shouldBe('document.cloneNode(false).characterSet', 'document.characterSet');
21 shouldBeEqualToString('document.cloneNode(true).contentType', 'text/html');
23 </script>
24 </body>