Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (32 sloc) 1.556 kb
<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>
Jump to Line
Something went wrong with that request. Please try again.