Brandon Aaron schrieb:
> If someone can send me a test case I'd be more than happy to commit this to
> SVN.
>
Just add something like this to animate:
@test stop();
var hash = {opacity: 'hide'};
var hashCopy = $.extend({}, hash);
$('#foo').animate(hash, 'fast', function() {
ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the
hash parameter' );
start();
});
Using stop() and start() like that is necessary to test the asynchronous
code. I'm not sure wheather that comparision suffices. Just run it
against the current code to see if it fails.
-- Jörn
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/