Index: LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html |
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8d07bd7f308b2c00d63b2c9cddba5d82eb6101b7 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<script> |
+function init() |
+{ |
+ var script = document.createElement("script"); |
+ script.src = "does-not-exist.js"; |
+ script.onerror = function () { console.log('PASS'); }; |
+ document.body.appendChild(script); |
+ window.top.document.adoptNode(document.documentElement); |
+ |
+ window.top.done(); |
+} |
+ |
+init(); |
+</script> |
+</body> |
+</html> |