X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Ffx.js;fp=test%2Funit%2Ffx.js;h=5b97dc33f46341d58c3986d4d0501cd469c6774e;hb=b24da33f52f8ce536ae60a6cbffeb2f5cf02bac5;hp=c259a38965094f6c62d01eec44f12e066c466dd4;hpb=8d1efee3167deedd33bf7f6001823706659704ea;p=jquery.git diff --git a/test/unit/fx.js b/test/unit/fx.js index c259a38..5b97dc3 100644 --- a/test/unit/fx.js +++ b/test/unit/fx.js @@ -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);