Changed the tests to be if(window.layoutTestController)
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Sep 2006 00:56:25 +0000 (00:56 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Sep 2006 00:56:25 +0000 (00:56 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16540 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/fast/overflow/scrollRevealButton.html
LayoutTests/http/tests/navigation/anchor-frames.html
LayoutTests/http/tests/navigation/anchor-subframeload.html
LayoutTests/http/tests/navigation/relativeanchor-frames.html

index a7dfc890c990c887e76e4fddcba757b2fe0368c5..31830d25f9e78af1d69bffc279a369aaa4d5d054 100644 (file)
@@ -1,6 +1,6 @@
 <html>This test should scroll recursively to reveal the button.
 <body onload="document.getElementById('fr').contentDocument.getElementById('bt').focus();">
-<script>if(layoutTestController) layoutTestController.dumpChildFrameScrollPositions();</script>
+<script>if(window.layoutTestController) layoutTestController.dumpChildFrameScrollPositions();</script>
 <div style="height:500px"></div>
 <iframe src="resources/scrollButton1.html" id="fr"></iframe>
 <div style="height:500px"></div>
index c49b97e040ef2080b4878751e9de9d40aad9d096..3e46d66b8afbeeb03394a1477aaeb23d528b5236 100644 (file)
@@ -1,7 +1,7 @@
 <script type="text/javascript" src="resources/testcode.js"/>
 <!-- %23 below is a #, which is escaped so the anchor applies to the subframe instead of the frameset. -->
 <script>
-    if(layoutTestController) layoutTestController.dumpChildFrameScrollPositions();
+    if(window.layoutTestController) layoutTestController.dumpChildFrameScrollPositions();
     runBasicTest("resources/frameset.pl?frameURL=success200.html%23anchor1", "none");
 </script>
 This page just kicks off a test, and should not appear in the expected test output.
index 9f0170269b12b4ced59d382a938fac47140926f9..616acbcb06df291c49d000bb428b8170537f3145 100644 (file)
@@ -1,6 +1,6 @@
 <script type="text/javascript" src="resources/testcode.js"/>
 <script>
-    if(layoutTestController) layoutTestController.dumpChildFrameScrollPositions();
+    if(window.layoutTestController) layoutTestController.dumpChildFrameScrollPositions();
     runLoadChildFrameTest("resources/success200.html#anchor1");
 </script>
 This page just kicks off a test, and should not appear in the expected test output.
index fd2aa94bf8515b1c3f5e5e407dbdf3f00b259ad9..a8781eb8393ec54cddc16302b3a5d8bcf3585a2a 100644 (file)
@@ -1,7 +1,7 @@
 <script type="text/javascript" src="resources/testcode.js"/>
 <!-- %23 below is a #, which is escaped so the anchor applies to the subframe instead of the frameset. -->
 <script>
-    if(layoutTestController) layoutTestController.dumpChildFrameScrollPositions();
+    if(window.layoutTestController) layoutTestController.dumpChildFrameScrollPositions();
     runBasicTest("resources/frameset.pl?frameURL=success200.html", "relativeanchor");
 </script>
 This page just kicks off a test, and should not appear in the expected test output.