X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Ffx.js;h=28fb92d2f083297ff70bf78d171f80c1b26d11e4;hb=eced38a30d21d025db3e219f3cce7239754316d8;hp=8af92979e25ad72f1e4dc8afef33736d1ace930d;hpb=654d946ead6bc1f995c04af2abc02da30cfe4f74;p=jquery.git diff --git a/test/unit/fx.js b/test/unit/fx.js index 8af9297..28fb92d 100644 --- a/test/unit/fx.js +++ b/test/unit/fx.js @@ -34,21 +34,16 @@ test("animate option (queue === false)", function () { }); }); -test("queue() defaults to 'fx' type", function () { - expect(2); +test("animate non-element", function(){ + expect(1); stop(); - var $foo = jQuery("#foo"); - $foo.queue("fx", [ "sample", "array" ]); - var arr = $foo.queue(); - isSet(arr, [ "sample", "array" ], "queue() got an array set with type 'fx'"); - $foo.queue([ "another", "one" ]); - var arr = $foo.queue("fx"); - isSet(arr, [ "another", "one" ], "queue('fx') got an array set with no type"); - // clean up after test - $foo.queue([]); + var obj = { test: 0 }; - start(); + jQuery(obj).animate({test: 200}, 200, function(){ + equals( obj.test, 200, "The custom property should be modified." ); + start(); + }); }); test("stop()", function() {