1<html> 2<body> 3<script> 4i = 0; 5windowArgs = "top=100, left=100, height=200, width=200"; 6windowName = ""; 7 8w = window.open("", windowName + i++, windowArgs); 9w.document.write("PASS: document.write after window.open(\"\", ...) worked."); 10w.document.close(); 11 12w = window.open("", windowName + i++, windowArgs); 13w.document.open(); 14w.document.write("PASS: document.write after window.open(\"\", ...) worked."); 15w.document.close(); 16 17 18w = window.open("about:blank", windowName + i++, windowArgs); 19w.document.write("PASS: document.write after window.open(\"about:blank\", ...) worked."); 20w.document.close(); 21 22w = window.open("about:blank", windowName + i++, windowArgs); 23w.document.open(); 24w.document.write("PASS: document.write after window.open(\"about:blank\", ...) worked."); 25w.document.close(); 26 27 28w = window.open("resources/write-after-open-popup.html", windowName + i++, windowArgs); 29w.document.write("PASS: document.write after window.open(\"resources/write-after-open-popup.html\", ...) worked."); 30w.document.close(); 31 32w = window.open("resources/write-after-open-popup.html", windowName + i++, windowArgs); 33w.document.open(); 34w.document.write("PASS: document.write after window.open(\"resources/write-after-open-popup.html\", ...) worked."); 35w.document.close(); 36</script> 37 38<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> 39 40<p>On success, 6 windows will open, one on top of the other, each containing a PASS message.</p> 41</body> 42</html> 43