Skip to content
Permalink
Browse files

Tooltip tests: Adjust test to deal with blurring being async in IE.

  • Loading branch information...
scottgonzalez committed Oct 12, 2011
1 parent f24ab94 commit 56bcf885c64bffd626be9db176a44b4854a3bddb
Showing with 3 additions and 1 deletion.
  1. +3 −1 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();
});

0 comments on commit 56bcf88

Please sign in to comment.
You can’t perform that action at this time.