Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / Document / clone-node.html
index b82d9fd..cf0b917 100644 (file)
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode">
-<script src="../../js/resources/js-test-pre.js"></script>
+<script src="../../../resources/js-test.js"></script>
 <script>
 description('Tests cloneNode for Document.');
 
@@ -10,13 +10,15 @@ function className(object) {
 
 var doc = document.implementation.createDocument('', 'root', null);
 
-shouldBe('doc.cloneNode(false).__proto__', 'Document.prototype');
-shouldBeEqualToString('className(doc.cloneNode(false))', 'Document');
+shouldBe('doc.cloneNode(false).__proto__', 'XMLDocument.prototype');
+shouldBeEqualToString('className(doc.cloneNode(false))', 'XMLDocument');
 shouldBeEqualToString('doc.cloneNode(true).documentElement.localName', 'root');
+shouldBeEqualToString('doc.cloneNode(true).contentType', 'application/xml');
 shouldBeEqualToString('document.cloneNode(true).compatMode', 'CSS1Compat');
 shouldBe('document.cloneNode(false).URL', 'document.URL');
 shouldBe('document.cloneNode(false).baseURI', 'document.baseURI');
 shouldBe('document.cloneNode(false).characterSet', 'document.characterSet');
+shouldBeEqualToString('document.cloneNode(true).contentType', 'text/html');
 
 </script>
 </body>