aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/fx.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-25 20:56:15 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-25 20:56:15 +0000
commit343b0936a43953a993d1f2cc500b954d5bcc8280 (patch)
treebc8c4f860409550900c22e00f8de237671bb4cc0 /test/unit/fx.js
parentfd0bf5d6edec1f3c03008bb29b16d7e7e1b36abc (diff)
downloadjquery-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.js12
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();