mirror of
https://github.com/jquery/jquery.git
synced 2026-02-12 06:45:06 -05:00
Make sure that width or height don't animate to a negative value. Fixes #3881.
This commit is contained in:
@@ -52,6 +52,15 @@ test("animate(Hash, Object, Function)", function() {
|
||||
});
|
||||
});
|
||||
|
||||
test("animate negative height", function() {
|
||||
expect(1);
|
||||
stop();
|
||||
jQuery("#foo").animate({ height: -100 }, 100, function() {
|
||||
equals( this.offsetHeight, 0, "Verify height." );
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
/* // This test ends up being flaky depending upon the CPU load
|
||||
test("animate option (queue === false)", function () {
|
||||
expect(1);
|
||||
|
||||
Reference in New Issue
Block a user