Testsuite 2.0

This commit is contained in:
Jörn Zaefferer 2006-11-18 13:37:01 +00:00
parent 797ccbaf31
commit 7cc550727c
12 changed files with 930 additions and 746 deletions

View file

@ -305,14 +305,6 @@ 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.

12
src/fx/fxTest.js Normal file
View file

@ -0,0 +1,12 @@
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();
});
});