[MSE] appending to the source buffer will not throw when the source buffer is full.
[WebKit-https.git] / LayoutTests / fast / events / focusingUnloadedFrame.html
index 4a6887c7dde43931225bbb1fff9b9147c50592b0..688480a6524b8e3c804751ea0913db52e6c02545 100644 (file)
@@ -1,34 +1,26 @@
 <!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);
 }
-
-
 </script>
 
 </head>
-<body onload="foo()">
 <frameset>
     <frame src="resources/frontpage.html">  <!-- A page containing a link -->
-    <frame src="resources/notfound.html">        <!-- A page that can't be found -->
+    <frame src="resources/notfound.html">   <!-- A page that can't be found -->
 </frameset>
-
-</body>
 </html>