| 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();
|
|
|