X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx%2FfxTest.js;h=23de82ac4c34baa9af45ff288055953bf475fee6;hb=5cfaef9ff9b121850f1e27afae6819023acadbf7;hp=8c29de6383f943dd2519a2c0b3d290253bd60bba;hpb=7cc550727c4e0bcd93c5d435f0799f568fc74dfa;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