Slide 54
Slide 54 text
QUnit
test("animate(Hash, Object, Function)", function() {
expect(1);
stop();
var hash = {opacity: "show"};
var hashCopy = jQuery.extend({}, hash);
jQuery("#foo").animate(hash, 0, function() {
equal( hash.opacity, hashCopy.opacity, "Check if
animate changed the hash parameter" );
start();
});
});