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 a7dfc89..31830d2 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 c49b97e..3e46d66 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 9f01702..616acbc 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 fd2aa94..a8781eb 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.