X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx%2FfxTest.js;h=f7fb865f0fcc9c5e2d1512f58727b78b188c4625;hb=d7a8794eb574a870fde9a8afdfd452e52804f65d;hp=23de82ac4c34baa9af45ff288055953bf475fee6;hpb=00a2fa5f35aa46c29a568729ef6dce4a7d5959b9;p=jquery.git diff --git a/src/fx/fxTest.js b/src/fx/fxTest.js index 23de82a..f7fb865 100644 --- a/src/fx/fxTest.js +++ b/src/fx/fxTest.js @@ -1,17 +1,18 @@ module("fx"); -test("animate(Hash, Object, Function) - assert that animate doesn't modify its arguments", function() { +test("animate(Hash, Object, Function)", function() { expect(1); stop(); var hash = {opacity: 'show'}; var hashCopy = $.extend({}, hash); - $('#foo').animate(hash, 'fast', function() { + $('#foo').animate(hash, 0, function() { ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' ); start(); }); }); test("toggle()", function() { + expect(3); var x = $("#foo"); ok( x.is(":visible") ); x.toggle();