diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-06-11 21:01:23 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-06-11 21:01:23 -0400 |
commit | 87e709cfcbac345520d937963730b5cfee47d33d (patch) | |
tree | 562d8f4d02af283e1d41dbdf14c0e78852b6c81e /test/unit/effects.js | |
parent | f8c02c886efdf3e42819a960da28738e20bb7a48 (diff) | |
download | jquery-87e709cfcbac345520d937963730b5cfee47d33d.tar.gz jquery-87e709cfcbac345520d937963730b5cfee47d33d.zip |
Fix regression for "-200px" in animations; closes gh-822.
Also removes fake IIFEs ffrom effects.
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r-- | test/unit/effects.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js index 48793e234..729ba29bc 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -197,6 +197,15 @@ test("animate negative margin", function() { }); }); +test("animate negative margin with px", function() { + expect(1); + stop(); + jQuery("#foo").animate({ marginTop: "-100px" }, 100, function() { + equal( jQuery(this).css("marginTop"), "-100px", "Verify margin." ); + start(); + }); +}); + test("animate negative padding", function() { expect(1); stop(); |