Unreviewed, fix a few tests that became flaky after r230919.
[WebKit.git] / LayoutTests / fast / events / beforeunload-alert-handled-keydown.html
index 8c8fceb..9448d0b 100644 (file)
@@ -20,8 +20,8 @@ onload = function() {
 
     setTimeout(function() {
         shouldBeEqualToString("testInput.value", "a");
+        testFrame.onload = finishJSTest;
         testFrame.src = "about:blank";
-        setTimeout(finishJSTest, 0);
     }, 0);
 };
 </script>