mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Removed duplicated show/hide/toggle, added test for toggle(), started documentation of event properties/methods
This commit is contained in:
@@ -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") );
|
||||
});
|
||||
Reference in New Issue
Block a user