diff options
author | John Resig <jeresig@gmail.com> | 2009-07-25 20:56:15 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-07-25 20:56:15 +0000 |
commit | 343b0936a43953a993d1f2cc500b954d5bcc8280 (patch) | |
tree | bc8c4f860409550900c22e00f8de237671bb4cc0 /test/unit/fx.js | |
parent | fd0bf5d6edec1f3c03008bb29b16d7e7e1b36abc (diff) | |
download | jquery-343b0936a43953a993d1f2cc500b954d5bcc8280.tar.gz jquery-343b0936a43953a993d1f2cc500b954d5bcc8280.zip |
Fix for animating hyphenated CSS properties. Fixes #4156.
Diffstat (limited to 'test/unit/fx.js')
-rw-r--r-- | test/unit/fx.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/fx.js b/test/unit/fx.js index 4b7d371c8..87e6aea0d 100644 --- a/test/unit/fx.js +++ b/test/unit/fx.js @@ -100,6 +100,18 @@ test("animate duration 0", function() { }); }); +test("animate hyphenated properties", function(){ + expect(1); + stop(); + + jQuery("#nothiddendiv") + .css("font-size", 10) + .animate({"font-size": 20}, 200, function(){ + equals( this.style.fontSize, "20px", "The font-size property was animated." ); + start(); + }); +}); + test("animate non-element", function(){ expect(1); stop(); |