blob: e4c2f4b7e549281560825d0a1ab9cadcf9879330 [file] [log] [blame]
<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>