Added test for #237

This commit is contained in:
Brandon Aaron 2006-10-10 21:28:00 +00:00
parent 692d676e99
commit 05164f34be

View file

@ -305,6 +305,14 @@ jQuery.fn.extend({
* left: 50, opacity: 'show'
* }, 500);
*
* @test 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();
* });
*
* @name animate
* @type jQuery
* @param Hash params A set of style attributes that you wish to animate, and to what end.