Reviewed by Maciej.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jan 2006 18:19:10 +0000 (18:19 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jan 2006 18:19:10 +0000 (18:19 +0000)
        - tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=6550
          REGRESSION: window.open('myurl', '_self') fails to load myurl in current window

        * fast/dom/Window/window-open-parent.html: Added.
        * fast/dom/Window/window-open-parent-no-parent.html: Added.
        * fast/dom/Window/window-open-self.html: Added.
        * fast/dom/Window/window-open-top.html: Added.

        * fast/dom/Window/resources: Added.
        * fast/dom/Window/resources/destination.html: Added.
        * fast/dom/Window/window-open-parent-expected.txt: Added.
        * fast/dom/Window/window-open-parent-no-parent-expected.txt: Added.
        * fast/dom/Window/window-open-self-expected.txt: Added.
        * fast/dom/Window/window-open-top-expected.txt: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/resources/destination.html [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-parent-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-parent-no-parent-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-parent-no-parent.html [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-parent.html [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-self-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-self.html [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-top-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-open-top.html [new file with mode: 0644]

index b00602f5cacd8cf3b3570520383cbe93ed29e3e6..4255b8fd206aae64cc8fb6fc14636cdbee85ca96 100644 (file)
@@ -1,3 +1,22 @@
+2006-01-28  Darin Adler  <darin@apple.com>
+
+        Reviewed by Maciej.
+
+        - tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=6550
+          REGRESSION: window.open('myurl', '_self') fails to load myurl in current window
+
+        * fast/dom/Window/window-open-parent.html: Added.
+        * fast/dom/Window/window-open-parent-no-parent.html: Added.
+        * fast/dom/Window/window-open-self.html: Added.
+        * fast/dom/Window/window-open-top.html: Added.
+
+        * fast/dom/Window/resources: Added.
+        * fast/dom/Window/resources/destination.html: Added.
+        * fast/dom/Window/window-open-parent-expected.txt: Added.
+        * fast/dom/Window/window-open-parent-no-parent-expected.txt: Added.
+        * fast/dom/Window/window-open-self-expected.txt: Added.
+        * fast/dom/Window/window-open-top-expected.txt: Added.
+
 2006-01-20  Darin Adler  <darin@apple.com>
 
         - added a test for the names of range exceptions, which were wrong
diff --git a/LayoutTests/fast/dom/Window/resources/destination.html b/LayoutTests/fast/dom/Window/resources/destination.html
new file mode 100644 (file)
index 0000000..33d0269
--- /dev/null
@@ -0,0 +1,2 @@
+<p>Hooray, you got here! That means the test succeeded!</p>
+<script>if (window.layoutTestController) layoutTestController.notifyDone();</script>
diff --git a/LayoutTests/fast/dom/Window/window-open-parent-expected.txt b/LayoutTests/fast/dom/Window/window-open-parent-expected.txt
new file mode 100644 (file)
index 0000000..cccaa8d
--- /dev/null
@@ -0,0 +1,3 @@
+Hooray, you got here! That means the test succeeded!
+
+
diff --git a/LayoutTests/fast/dom/Window/window-open-parent-no-parent-expected.txt b/LayoutTests/fast/dom/Window/window-open-parent-no-parent-expected.txt
new file mode 100644 (file)
index 0000000..cccaa8d
--- /dev/null
@@ -0,0 +1,3 @@
+Hooray, you got here! That means the test succeeded!
+
+
diff --git a/LayoutTests/fast/dom/Window/window-open-parent-no-parent.html b/LayoutTests/fast/dom/Window/window-open-parent-no-parent.html
new file mode 100644 (file)
index 0000000..219b22f
--- /dev/null
@@ -0,0 +1,8 @@
+<script>
+if (window.layoutTestController) {
+    layoutTestController.dumpAsText();
+    layoutTestController.waitUntilDone();
+}
+window.open("resources/destination.html", "_parent");
+</script>
+<p>If you can still see this text, then the test of window.open(URL, "_parent") has failed.</p>
diff --git a/LayoutTests/fast/dom/Window/window-open-parent.html b/LayoutTests/fast/dom/Window/window-open-parent.html
new file mode 100644 (file)
index 0000000..9c6135a
--- /dev/null
@@ -0,0 +1,2 @@
+<iframe src="window-open-parent-no-parent.html"></iframe>
+<p>If you can still see this text, then the test of window.open(URL, "_parent") has failed.</p>
diff --git a/LayoutTests/fast/dom/Window/window-open-self-expected.txt b/LayoutTests/fast/dom/Window/window-open-self-expected.txt
new file mode 100644 (file)
index 0000000..cccaa8d
--- /dev/null
@@ -0,0 +1,3 @@
+Hooray, you got here! That means the test succeeded!
+
+
diff --git a/LayoutTests/fast/dom/Window/window-open-self.html b/LayoutTests/fast/dom/Window/window-open-self.html
new file mode 100644 (file)
index 0000000..213cbd3
--- /dev/null
@@ -0,0 +1,8 @@
+<script>
+if (window.layoutTestController) {
+    layoutTestController.dumpAsText();
+    layoutTestController.waitUntilDone();
+}
+window.open("resources/destination.html", "_self");
+</script>
+<p>If you can still see this text, then the test of window.open(URL, "_self") has failed.</p>
diff --git a/LayoutTests/fast/dom/Window/window-open-top-expected.txt b/LayoutTests/fast/dom/Window/window-open-top-expected.txt
new file mode 100644 (file)
index 0000000..cccaa8d
--- /dev/null
@@ -0,0 +1,3 @@
+Hooray, you got here! That means the test succeeded!
+
+
diff --git a/LayoutTests/fast/dom/Window/window-open-top.html b/LayoutTests/fast/dom/Window/window-open-top.html
new file mode 100644 (file)
index 0000000..e9ee038
--- /dev/null
@@ -0,0 +1,8 @@
+<script>
+if (window.layoutTestController) {
+    layoutTestController.dumpAsText();
+    layoutTestController.waitUntilDone();
+}
+window.open("resources/destination.html", "_top");
+</script>
+<p>If you can still see this text, then the test of window.open(URL, "_top") has failed.</p>