Testsuite 2.0
This commit is contained in:
parent
797ccbaf31
commit
7cc550727c
12 changed files with 930 additions and 746 deletions
|
@ -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
12
src/fx/fxTest.js
Normal 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();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue