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

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.html

Issue 913473002: Testing a fix to crbug.com/456059. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: refactored Created 5 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.html
similarity index 52%
copy from LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html
copy to LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.html
index 3095ba797b34950d7d684de02d426f87f45c6eeb..8e8794499842c34a179771f93828d819be187826 100644
--- a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.html
@@ -8,8 +8,11 @@ function init()
script.src = "does-not-exist.js";
script.onerror = function () { window.top.done(); };
document.body.appendChild(script);
- var contextDoc = window.top.document.implementation.createDocument("", null);
- contextDoc.adoptNode(document.documentElement);
+ // otherDoc's contextDocument is document.
+ var otherDoc = document.implementation.createDocument("", "a", null);
+ var divElement = otherDoc.createElement("div");
+ divElement.appendChild(script);
+ document.body.appendChild(script);
}
init();
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698