From fdf37de77882204cafeba2f10fb5b9915b6e4b93 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 4 Apr 2012 23:30:13 -0400 Subject: Followup to #11469; add test case and clarify code. --- test/unit/effects.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/unit') diff --git a/test/unit/effects.js b/test/unit/effects.js index e478cdf63..25c9834e4 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -263,6 +263,15 @@ test("animate negative height", function() { }); }); +test("animate negative margin", function() { + expect(1); + stop(); + jQuery("#foo").animate({ marginTop: -100 }, 100, function() { + equal( jQuery(this).css("marginTop"), "-100px", "Verify margin." ); + start(); + }); +}); + test("animate negative padding", function() { expect(1); stop(); -- cgit v1.2.3