aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-10-12 10:25:55 -0400
committerScott González <scott.gonzalez@gmail.com>2011-10-12 10:26:51 -0400
commit56bcf885c64bffd626be9db176a44b4854a3bddb (patch)
tree30565a2141dcd16f3d6e3fb8f302c19167adc5b2
parentf24ab94f86ddcc4382800f6f1664320dd31a935c (diff)
downloadjquery-ui-56bcf885c64bffd626be9db176a44b4854a3bddb.tar.gz
jquery-ui-56bcf885c64bffd626be9db176a44b4854a3bddb.zip
Tooltip tests: Adjust test to deal with blurring being async in IE.
-rw-r--r--tests/unit/tooltip/tooltip_events.js4
1 files changed, 3 insertions, 1 deletions
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();
});