Skip to content

Commit

Permalink
Fixes #8892: Adding unit test for #8892 - Actually fixed in 58ed62e
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarf committed May 11, 2012
1 parent afb34fe commit 7799f21
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/unit/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1495,3 +1495,17 @@ asyncTest( "Animate callbacks have correct context", 2, function() {
start();
});
});

asyncTest( "User supplied callback called after show when fx off (#8892)", 2, function() {
var foo = jQuery( "#foo" );
jQuery.fx.off = true;
foo.hide();
foo.fadeIn( 500, function() {
ok( jQuery( this ).is( ":visible" ), "Element is visible in callback" );
foo.fadeOut( 500, function() {
ok( jQuery( this ).is( ":hidden" ), "Element is hidden in callback" );
jQuery.fx.off = false;
start();
});
});
});

0 comments on commit 7799f21

Please sign in to comment.