diff options
Diffstat (limited to 'Source/WebCore/manual-tests/write-after-open.html')
-rw-r--r-- | Source/WebCore/manual-tests/write-after-open.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/write-after-open.html b/Source/WebCore/manual-tests/write-after-open.html new file mode 100644 index 0000000..e4c2f4b --- /dev/null +++ b/Source/WebCore/manual-tests/write-after-open.html @@ -0,0 +1,42 @@ +<html> +<body> +<script> +i = 0; +windowArgs = "top=100, left=100, height=200, width=200"; +windowName = ""; + +w = window.open("", windowName + i++, windowArgs); +w.document.write("PASS: document.write after window.open(\"\", ...) worked."); +w.document.close(); + +w = window.open("", windowName + i++, windowArgs); +w.document.open(); +w.document.write("PASS: document.write after window.open(\"\", ...) worked."); +w.document.close(); + + +w = window.open("about:blank", windowName + i++, windowArgs); +w.document.write("PASS: document.write after window.open(\"about:blank\", ...) worked."); +w.document.close(); + +w = window.open("about:blank", windowName + i++, windowArgs); +w.document.open(); +w.document.write("PASS: document.write after window.open(\"about:blank\", ...) worked."); +w.document.close(); + + +w = window.open("resources/write-after-open-popup.html", windowName + i++, windowArgs); +w.document.write("PASS: document.write after window.open(\"resources/write-after-open-popup.html\", ...) worked."); +w.document.close(); + +w = window.open("resources/write-after-open-popup.html", windowName + i++, windowArgs); +w.document.open(); +w.document.write("PASS: document.write after window.open(\"resources/write-after-open-popup.html\", ...) worked."); +w.document.close(); +</script> + +<p>This test checks for regression against: <rdar://problem/3461547> can't use document.writeln() on windows opened via window.open("about:blank") in same function. </p> + +<p>On success, 6 windows will open, one on top of the other, each containing a PASS message.</p> +</body> +</html> |