Followup to #11469; add test case and clarify code.

This commit is contained in:
Sindre Sorhus
2012-04-04 23:30:13 -04:00
committed by Dave Methvin
parent d5ee856a44
commit fdf37de778
2 changed files with 12 additions and 2 deletions

View File

@@ -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();