diff options
Diffstat (limited to 'testing/web-platform/tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html')
-rw-r--r-- | testing/web-platform/tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html b/testing/web-platform/tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html new file mode 100644 index 000000000..1c5a1db8f --- /dev/null +++ b/testing/web-platform/tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html @@ -0,0 +1,14 @@ +<!doctype html> +1 +<script> +function f() { + opener.postMessage("original", "*"); + setTimeout(function () { + document.open(); + document.write("<!doctype html>2<script>opener.postMessage('written', '*');<\/script>"); + document.close(); + }), 100; +} + +window.onload = f +</script> |