阅读 jQuery 1.8 test/unit/effects.js测试,这里要测试什么?
var speeds = {
'null speed' : null,
'undefined speed': undefined,
'false speed': false
}
// make sure passing bogus arguments doesn't change state var ?
jQuery.each( speeds,
function( name, speed ) {
pass = true;
div.hide()
.show(speed)
.each( function() {
if( this.style.display == 'none' ) {
pass = false;
}
});
ok( pass, 'Show with ' + name );
});