mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Followup to #11469; add test case and clarify code.
This commit is contained in:
committed by
Dave Methvin
parent
d5ee856a44
commit
fdf37de778
9
test/unit/effects.js
vendored
9
test/unit/effects.js
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user