- Oops. Last checkin omitted the actual test for:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jul 2005 22:04:30 +0000 (22:04 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jul 2005 22:04:30 +0000 (22:04 +0000)
        <rdar://problem/3461547> can't use document.writeln() on windows opened via window.open("about:blank") in same function

        * manual-tests/write-after-open.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9953 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/manual-tests/write-after-open.html [new file with mode: 0644]

index e9927c7d83340cb1f9397619b5a6e1a074448f22..ed9f0f0d189d412f79a2829294422c7f283b6fc8 100644 (file)
@@ -1,3 +1,10 @@
+2005-07-29  Geoffrey Garen  <ggaren@apple.com>
+
+        - Oops. Last checkin omitted the actual test for:
+        <rdar://problem/3461547> can't use document.writeln() on windows opened via window.open("about:blank") in same function
+
+        * manual-tests/write-after-open.html: Added.
+
 2005-07-29  Eric Seidel  <eseidel@apple.com>
 
         No review necessary
diff --git a/WebCore/manual-tests/write-after-open.html b/WebCore/manual-tests/write-after-open.html
new file mode 100644 (file)
index 0000000..e4c2f4b
--- /dev/null
@@ -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>