Skip to content

Commit 56bcf88

Browse files
committed
Tooltip tests: Adjust test to deal with blurring being async in IE.
1 parent f24ab94 commit 56bcf88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/tooltip/tooltip_events.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test( "focus events", function() {
5252
element.trigger( "blur" );
5353
});
5454

55-
test( "mixed events", function() {
55+
asyncTest( "mixed events", function() {
5656
expect( 2 );
5757
var element = $( "#tooltipped1" ).tooltip();
5858

@@ -72,8 +72,10 @@ test( "mixed events", function() {
7272
element.trigger( "mouseleave" );
7373
element.unbind( "tooltipclose" );
7474

75+
// blurring is async in IE
7576
element.one( "tooltipclose", function( event ) {
7677
same( event.originalEvent.type, "blur" );
78+
start();
7779
});
7880
element[0].blur();
7981
});

0 commit comments

Comments
 (0)