From 696c553053c24909dfc8feddff7b73d18f5abb2a Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 21 Oct 2012 22:17:46 +0400 Subject: [PATCH] Fix failing tests for beforeunload in Safari 5.0. Close gh-1002. --- test/unit/event.js | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/test/unit/event.js b/test/unit/event.js index 727e20ac2..1c95aff38 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -1372,20 +1372,30 @@ test("Submit event can be stopped (#11049)", function() { // Test beforeunload event only if it supported (i.e. not Opera) if ( window.onbeforeunload === null ) { asyncTest("on(beforeunload)", 4, function() { - var doc, + var win, forIE6 = 0, + fired = false, iframe = jQuery("