Index: LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html |
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html |
index e444307c950840d8cfb45cbb1db67536b00d13be..c1508362af3e99b62ebe06a0f08eb23a7f7ff9c1 100644 |
--- a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html |
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html |
@@ -7,9 +7,8 @@ function init() |
var script = document.createElement("script"); |
script.src = "should-load.js"; |
document.body.appendChild(script); |
- window.top.document.adoptNode(document.documentElement); |
- |
- window.top.done(); |
+ var contextDoc = window.top.document.implementation.createDocument("", null); |
+ contextDoc.adoptNode(document.documentElement); |
} |
init(); |