Cleaned up a lot of the test suite - reorganized and renamed tests. Added a new trigg...
[jquery.git] / src / fx / fxTest.js
index 23de82a..f7fb865 100644 (file)
@@ -1,17 +1,18 @@
 module("fx");
 
-test("animate(Hash, Object, Function) - assert that animate doesn't modify its arguments", function() {
+test("animate(Hash, Object, Function)", function() {
        expect(1);
        stop();
        var hash = {opacity: 'show'};
        var hashCopy = $.extend({}, hash);
-       $('#foo').animate(hash, 'fast', function() {
+       $('#foo').animate(hash, 0, function() {
                ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' );
                start();
        });
 });
 
 test("toggle()", function() {
+       expect(3);
        var x = $("#foo");
        ok( x.is(":visible") );
        x.toggle();