Reviewed by Mitz.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Oct 2007 16:28:07 +0000 (16:28 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Oct 2007 16:28:07 +0000 (16:28 +0000)
        Test for http://bugs.webkit.org/show_bug.cgi?id=10030
        Star Alliance site is opened without the main frame

        * fast/frames/location-change-expected.txt: Added.
        * fast/frames/location-change.html: Added.
        * fast/frames/resources/location-change-frame-1.html: Added.
        * fast/frames/resources/location-change-frame-2.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/frames/location-change-expected.txt [new file with mode: 0644]
LayoutTests/fast/frames/location-change.html [new file with mode: 0644]
LayoutTests/fast/frames/resources/location-change-frame-1.html [new file with mode: 0644]
LayoutTests/fast/frames/resources/location-change-frame-2.html [new file with mode: 0644]

index e08e6a20b6d9fc2c2c2482c412c5e28130d56b23..f77388bf5770cd451db60c868cfc40f20bc3c700 100644 (file)
@@ -1,3 +1,15 @@
+2007-10-29  Alexey Proskuryakov  <ap@webkit.org>
+
+        Reviewed by Mitz.
+
+        Test for http://bugs.webkit.org/show_bug.cgi?id=10030
+        Star Alliance site is opened without the main frame
+
+        * fast/frames/location-change-expected.txt: Added.
+        * fast/frames/location-change.html: Added.
+        * fast/frames/resources/location-change-frame-1.html: Added.
+        * fast/frames/resources/location-change-frame-2.html: Added.
+
 2007-10-29  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by John Sullivan,
diff --git a/LayoutTests/fast/frames/location-change-expected.txt b/LayoutTests/fast/frames/location-change-expected.txt
new file mode 100644 (file)
index 0000000..064737f
--- /dev/null
@@ -0,0 +1,2 @@
+ALERT: SUCCESS
+
diff --git a/LayoutTests/fast/frames/location-change.html b/LayoutTests/fast/frames/location-change.html
new file mode 100644 (file)
index 0000000..dab974a
--- /dev/null
@@ -0,0 +1,4 @@
+<frameset cols="1,1">
+    <frame src="resources/location-change-frame-1.html">
+    <frame id="r" src="data:text/html,hello world">
+</frameset>
diff --git a/LayoutTests/fast/frames/resources/location-change-frame-1.html b/LayoutTests/fast/frames/resources/location-change-frame-1.html
new file mode 100644 (file)
index 0000000..3c827d3
--- /dev/null
@@ -0,0 +1,8 @@
+<p>The frame on the right should <i>not</i> say 'hello world'.</p>
+<script>
+if (window.layoutTestController) {
+  layoutTestController.dumpAsText();
+  layoutTestController.waitUntilDone();
+}
+parent.frames[1].location='location-change-frame-2.html'
+</script>
diff --git a/LayoutTests/fast/frames/resources/location-change-frame-2.html b/LayoutTests/fast/frames/resources/location-change-frame-2.html
new file mode 100644 (file)
index 0000000..824f435
--- /dev/null
@@ -0,0 +1,7 @@
+<p>SUCCESS</p>
+<script>
+if (window.layoutTestController) {
+  alert("SUCCESS");
+  layoutTestController.notifyDone();
+}
+</script>