From: Scott González Date: Wed, 12 Oct 2011 14:25:55 +0000 (-0400) Subject: Tooltip tests: Adjust test to deal with blurring being async in IE. X-Git-Tag: 1.9m7~199 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56bcf885c64bffd626be9db176a44b4854a3bddb;p=jquery-ui.git Tooltip tests: Adjust test to deal with blurring being async in IE. --- diff --git a/tests/unit/tooltip/tooltip_events.js b/tests/unit/tooltip/tooltip_events.js index 29220705f..963acaf59 100644 --- a/tests/unit/tooltip/tooltip_events.js +++ b/tests/unit/tooltip/tooltip_events.js @@ -52,7 +52,7 @@ test( "focus events", function() { element.trigger( "blur" ); }); -test( "mixed events", function() { +asyncTest( "mixed events", function() { expect( 2 ); var element = $( "#tooltipped1" ).tooltip(); @@ -72,8 +72,10 @@ test( "mixed events", function() { element.trigger( "mouseleave" ); element.unbind( "tooltipclose" ); + // blurring is async in IE element.one( "tooltipclose", function( event ) { same( event.originalEvent.type, "blur" ); + start(); }); element[0].blur(); });