Fix win build.
[WebKit-https.git] / LayoutTests / fast / events / focusingUnloadedFrame.html
index 43fcc87a29b233ebf3921ec27287547cfa4427a6..688480a6524b8e3c804751ea0913db52e6c02545 100644 (file)
@@ -1,26 +1,21 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
-"http://www.w3.org/TR/html4/frameset.dtd"> 
+"http://www.w3.org/TR/html4/frameset.dtd">
 <html>
 <head>
 
 
 <script>
-function step2() {
+onload = function() {
+    if (!window.testRunner)
+        return;
+
+    testRunner.dumpAsText();
+    testRunner.dumpChildFramesAsText();
+    
     var modifiers = ["altKey"];
     eventSender.keyDown("\t", modifiers);
     eventSender.keyDown("\t", modifiers);
-    window.layoutTestController.notifyDone();
-}
-
-function foo() {
-    if (!window.layoutTestController)
-        return;
-    
-    window.layoutTestController.waitUntilDone();
-    window.setTimeout('step2()', 100);
 }
-
-window.onload = foo;
 </script>
 
 </head>