aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
authorAnton M <obhvsbypqghgc@gmail.com>2011-02-13 23:03:46 +0100
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-13 23:17:58 +0100
commitc5edf982d59977c506fececd504a3dbfd1a398dc (patch)
tree19338a5acb5b3f2be3d9f3af2a0d33e83836e36c /test/unit/effects.js
parentdba8c20b4bfdeb95b6fb8c9555355babf1daa539 (diff)
downloadjquery-c5edf982d59977c506fececd504a3dbfd1a398dc.tar.gz
jquery-c5edf982d59977c506fececd504a3dbfd1a398dc.zip
Don't add "px" to unit-less properties when animating them. Fixes #4966.
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r--test/unit/effects.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index bab4f2564..7fb1c7d8d 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -919,3 +919,13 @@ test("hide hidden elements, with animation (bug #7141)", function() {
});
});
});
+
+test("animate unit-less properties (#4966)", 2, function() {
+ stop();
+ var div = jQuery( "<div style='z-index: 0'></div>" ).appendTo( "body" );
+ equal( div.css( "z-index" ), "0", "z-index is 0" );
+ div.animate({ zIndex: 2 }, function() {
+ equal( div.css( "z-index" ), "2", "z-index is 2" );
+ start();
+ });
+});