f7fb865f0fcc9c5e2d1512f58727b78b188c4625
[jquery.git] / src / fx / fxTest.js
1 module("fx");
2
3 test("animate(Hash, Object, Function)", function() {
4         expect(1);
5         stop();
6         var hash = {opacity: 'show'};
7         var hashCopy = $.extend({}, hash);
8         $('#foo').animate(hash, 0, function() {
9                 ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' );
10                 start();
11         });
12 });
13
14 test("toggle()", function() {
15         expect(3);
16         var x = $("#foo");
17         ok( x.is(":visible") );
18         x.toggle();
19         ok( x.is(":hidden") );
20         x.toggle();
21         ok( x.is(":visible") );
22 });