diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch) | |
tree | d49911209b132da58d838efa852daf28d516df21 /WebCore/manual-tests/write-after-open.html | |
parent | 87eb0cb35bad8784770ebc807e6c982432e47107 (diff) | |
download | external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2 |
Initial Contribution
Diffstat (limited to 'WebCore/manual-tests/write-after-open.html')
-rw-r--r-- | WebCore/manual-tests/write-after-open.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/WebCore/manual-tests/write-after-open.html b/WebCore/manual-tests/write-after-open.html new file mode 100644 index 0000000..e4c2f4b --- /dev/null +++ b/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> |