Skip to content
Permalink
Browse files

Unit Tests: Adding a unit test to make sure .stop( true, true ) clear…

…s the inline styles when using animateClass - Fixed #3928 - Class-Animation: Please add a clearInlineStyle-Option
  • Loading branch information...
gnarf committed Jun 23, 2011
1 parent 5f0a2f0 commit a89ff4098a6149817061a752ec3755127f554407
Showing with 15 additions and 0 deletions.
  1. +15 −0 tests/unit/effects/effects_core.js
@@ -123,4 +123,19 @@ asyncTest( "animateClass works with children", function() {
}});
});

asyncTest( "animateClass clears style properties when stopped", function() {
var test = $("div.animateClass"),
style = test[0].style,
orig = style.cssText;

expect( 2 );

test.addClass( "testChangeBackground", duration );
notEqual( orig, style.cssText, "cssText is the not the same after starting animation" );

test.stop( true, true );
equal( orig, style.cssText, "cssText is the same after stopping animation midway" );
start();
});

})(jQuery);

0 comments on commit a89ff40

Please sign in to comment.
You can’t perform that action at this time.