diff options
Diffstat (limited to 'testing/web-platform/tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/005.html')
-rw-r--r-- | testing/web-platform/tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/005.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/005.html b/testing/web-platform/tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/005.html new file mode 100644 index 000000000..6bd850520 --- /dev/null +++ b/testing/web-platform/tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/005.html @@ -0,0 +1,16 @@ +<!doctype html> +<title>Cancelling timeout after document.open</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id="log"></div> +<iframe src="004-1.html"></iframe> +<script> +var t = async_test(); +var iframe; +onload = t.step_func(function() { + var iframe = document.getElementsByTagName("iframe")[0]; + iframe.contentWindow.setTimeout(t.step_func(function() {assert_unreached()}), 100); + iframe.contentDocument.open() + setTimeout(function() {t.done();}, 200); +}); +</script> |