mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Unit Tests: Adding a unit test to make sure .stop( true, true ) clears the inline styles when using animateClass - Fixed #3928 - Class-Animation: Please add a clearInlineStyle-Option
This commit is contained in:
parent
5f0a2f01c4
commit
a89ff4098a
@ -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);
|
})(jQuery);
|
||||||
|
Loading…
Reference in New Issue
Block a user