2006-11-18 14:37:01 +01:00
|
|
|
module("fx");
|
|
|
|
|
2007-03-25 20:06:18 +02:00
|
|
|
test("animate(Hash, Object, Function)", function() {
|
2006-11-18 14:37:01 +01:00
|
|
|
expect(1);
|
|
|
|
stop();
|
|
|
|
var hash = {opacity: 'show'};
|
|
|
|
var hashCopy = $.extend({}, hash);
|
2007-03-25 20:06:18 +02:00
|
|
|
$('#foo').animate(hash, 0, function() {
|
2006-11-18 14:37:01 +01:00
|
|
|
ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' );
|
|
|
|
start();
|
|
|
|
});
|
2007-01-09 18:15:22 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
test("toggle()", function() {
|
2007-03-25 20:06:18 +02:00
|
|
|
expect(3);
|
2007-01-09 18:15:22 +01:00
|
|
|
var x = $("#foo");
|
|
|
|
ok( x.is(":visible") );
|
|
|
|
x.toggle();
|
|
|
|
ok( x.is(":hidden") );
|
|
|
|
x.toggle();
|
|
|
|
ok( x.is(":visible") );
|
2006-11-18 14:37:01 +01:00
|
|
|
});
|