Commit 7799f213 authored by Corey Frang's avatar Corey Frang

Fixes #8892: Adding unit test for #8892 - Actually fixed in 58ed62ed

parent afb34fe2
...@@ -1495,3 +1495,17 @@ asyncTest( "Animate callbacks have correct context", 2, function() { ...@@ -1495,3 +1495,17 @@ asyncTest( "Animate callbacks have correct context", 2, function() {
start(); 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();
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment