mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
12 lines
361 B
JavaScript
12 lines
361 B
JavaScript
module("fx");
|
|
|
|
test("animate(Hash, Object, Function) - assert that animate doesn't modify its arguments", function() {
|
|
expect(1);
|
|
stop();
|
|
var hash = {opacity: 'show'};
|
|
var hashCopy = $.extend({}, hash);
|
|
$('#foo').animate(hash, 'fast', function() {
|
|
ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' );
|
|
start();
|
|
});
|
|
}); |