1 jasmine.WaitsBlock = function(env, timeout, spec) { 2 this.timeout = timeout; 3 jasmine.Block.call(this, env, null, spec); 4 }; 5 6 jasmine.util.inherit(jasmine.WaitsBlock, jasmine.Block); 7 8 jasmine.WaitsBlock.prototype.execute = function (onComplete) { 9 this.env.reporter.log('>> Jasmine waiting for ' + this.timeout + ' ms...'); 10 this.env.setTimeout(function () { 11 onComplete(); 12 }, this.timeout); 13 }; 14