| Index: LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html
|
| diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5f71a402c989682fc8366b55c423591b9452f325
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-from-non-contextdoc-to-iframe.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script>
|
| +function init()
|
| +{
|
| + var script = document.createElement("script");
|
| + script.src = "does-not-exist.js";
|
| + script.onerror = function () { window.top.done(); };
|
| + document.body.appendChild(script);
|
| + // otherDoc's contextDocument is document.
|
| + var otherDoc = document.implementation.createDocument("", "a", null);
|
| + var divElement = otherDoc.createElement("div");
|
| + divElement.appendChild(script);
|
| + var iframe = document.createElement("iframe");
|
| + iframe.appendChild(script);
|
| +}
|
| +
|
| +init();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|