X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Ffx.js;h=28fb92d2f083297ff70bf78d171f80c1b26d11e4;hb=b1e161466cb7f68bc7447ffd580395764715d9ca;hp=2ee3d30db99d3a9bbdb67bdb247d2e08cc781481;hpb=4afa60835146e71c0e57b492a1cca278eaf1ef9c;p=jquery.git diff --git a/test/unit/fx.js b/test/unit/fx.js index 2ee3d30..28fb92d 100644 --- a/test/unit/fx.js +++ b/test/unit/fx.js @@ -34,6 +34,18 @@ test("animate option (queue === false)", function () { }); }); +test("animate non-element", function(){ + expect(1); + stop(); + + var obj = { test: 0 }; + + jQuery(obj).animate({test: 200}, 200, function(){ + equals( obj.test, 200, "The custom property should be modified." ); + start(); + }); +}); + test("stop()", function() { expect(3); stop();