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