aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2012-05-18 13:48:24 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-05-18 13:48:24 -0400
commit6bf3f20d4e0f69ab14702152880a0574623490e2 (patch)
tree5726b4fdb9032578cb58474f921fd6ec26e7627a /test/unit/effects.js
parentf1dcaad09736c194f9148e5bf5fb08498a483a7a (diff)
downloadjquery-6bf3f20d4e0f69ab14702152880a0574623490e2.tar.gz
jquery-6bf3f20d4e0f69ab14702152880a0574623490e2.zip
Fix #7157. Animation callbacks shouldn't see an element as :animated.
Unless of course, there are other animations to be done! Closes gh-775.
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r--test/unit/effects.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index 59a3d3627..b05dfa0cf 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -1509,3 +1509,14 @@ asyncTest( "User supplied callback called after show when fx off (#8892)", 2, fu
});
});
});
+
+asyncTest("Animation callback should not show animated element as animated (#7157)", 1, function() {
+ var foo = jQuery( "#foo" );
+
+ foo.animate({
+ opacity: 0
+ }, 100, function() {
+ ok( !foo.is(':animated'), "The element is not animated" );
+ start();
+ });
+}); \ No newline at end of file