From 56bcf885c64bffd626be9db176a44b4854a3bddb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 12 Oct 2011 10:25:55 -0400 Subject: [PATCH] Tooltip tests: Adjust test to deal with blurring being async in IE. --- tests/unit/tooltip/tooltip_events.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }); -- 2.39.5