Index: LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg |
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg |
index c8de415b4a13e46683b970c818ca22b0f0ec357f..e3ab2f22e51929277f30ff8bae4e78d86c318212 100644 |
--- a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg |
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg |
@@ -6,10 +6,10 @@ function init() |
var script = document.createElementNS("http://www.w3.org/2000/svg", "script"); |
script.setAttributeNS('http://www.w3.org/1999/xlink', 'href', "does-not-exist.js"); |
- script.onerror = function() { console.log('PASS'); }; |
+ script.onerror = function() { window.top.done(); }; |
document.documentElement.appendChild(script); |
- window.top.document.adoptNode(document.documentElement); |
- window.top.done(); |
+ var contextDoc = window.top.document.implementation.createDocument("", null); |
+ contextDoc.adoptNode(document.documentElement); |
} |
init(); |
</script> |