Testsuite 2.0
[jquery.git] / src / fx / fxTest.js
diff --git a/src/fx/fxTest.js b/src/fx/fxTest.js
new file mode 100644 (file)
index 0000000..8c29de6
--- /dev/null
@@ -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();
+       });
+});
\ No newline at end of file