aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorSindre Sorhus <sindresorhus@gmail.com>2012-04-04 23:30:13 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-04-04 23:30:13 -0400
commitfdf37de77882204cafeba2f10fb5b9915b6e4b93 (patch)
tree65d5c59749199b5316452f129d2fb886724c72c6 /test/unit
parentd5ee856a44eff3f07162cf7eb1181b58d3a1c6ff (diff)
downloadjquery-fdf37de77882204cafeba2f10fb5b9915b6e4b93.tar.gz
jquery-fdf37de77882204cafeba2f10fb5b9915b6e4b93.zip
Followup to #11469; add test case and clarify code.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/effects.js9
1 files changed, 9 insertions, 0 deletions
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();