Removed duplicated show/hide/toggle, added test for toggle(), started documentation...
[jquery.git] / src / fx / fxTest.js
index 8c29de6..23de82a 100644 (file)
@@ -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