mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tooltip tests: Adjust test to deal with blurring being async in IE.
This commit is contained in:
parent
f24ab94f86
commit
56bcf885c6
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user