Index: LayoutTests/http/tests/security/document-clone-node-change-domain.html |
diff --git a/LayoutTests/http/tests/security/create-document-change-domain.html b/LayoutTests/http/tests/security/document-clone-node-change-domain.html |
similarity index 77% |
copy from LayoutTests/http/tests/security/create-document-change-domain.html |
copy to LayoutTests/http/tests/security/document-clone-node-change-domain.html |
index 8b621b46ddfacbed88dc8c5dbc8d95e7cb51b414..916824a81736aff4970fc01c5997d991ac42afdc 100644 |
--- a/LayoutTests/http/tests/security/create-document-change-domain.html |
+++ b/LayoutTests/http/tests/security/document-clone-node-change-domain.html |
@@ -2,10 +2,10 @@ |
<script src="/js-test-resources/js-test-pre.js"></script> |
<script> |
-description('Tests that different documents created using createDocument do not share the underlying domain'); |
+description('Tests that cloned documents do not share the underlying domain'); |
-var doc = document.implementation.createDocument(null, 'one', null); |
-var doc2 = document.implementation.createHTMLDocument('title'); |
+var doc = document.cloneNode(true); |
+var doc2 = doc.cloneNode(true); |
shouldBeEqualToString('document.domain', '127.0.0.1'); |
shouldBeEqualToString('doc.domain', '127.0.0.1'); |
shouldBeEqualToString('doc2.domain', '127.0.0.1'); |