X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx%2FfxTest.js;h=23de82ac4c34baa9af45ff288055953bf475fee6;hb=41cc839a2dff6342aaba048eae36d66d2a25d288;hp=8c29de6383f943dd2519a2c0b3d290253bd60bba;hpb=d3d7d7ebff2e1fc6a1e8ea9a620a7560ff71ef1a;p=jquery.git diff --git a/src/fx/fxTest.js b/src/fx/fxTest.js index 8c29de6..23de82a 100644 --- a/src/fx/fxTest.js +++ b/src/fx/fxTest.js @@ -9,4 +9,13 @@ test("animate(Hash, Object, Function) - assert that animate doesn't modify its a ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' ); start(); }); +}); + +test("toggle()", function() { + var x = $("#foo"); + ok( x.is(":visible") ); + x.toggle(); + ok( x.is(":hidden") ); + x.toggle(); + ok( x.is(":visible") ); }); \ No newline at end of file