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

This commit is contained in:
Scott González 2011-10-12 10:25:55 -04:00
parent f24ab94f86
commit 56bcf885c6

View File

@ -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();
});