Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: LayoutTests/http/tests/security/document-clone-node-change-domain.html

Issue 23437003: Implement cloneNode for Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use SecurityContext::isolatedCopy instead and domain change test Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');

Powered by Google App Engine
This is Rietveld 408576698