Move Browser & Node specs to test against lib/jasmine.js instead of the separate source. Yes, this makes development a little harder but it's better to test that jasmine.js was built correctly.
16 lines
434 B
JavaScript
16 lines
434 B
JavaScript
jasmine.WaitsBlock = function(env, timeout, spec) {
|
|
this.timeout = timeout;
|
|
jasmine.Block.call(this, env, null, spec);
|
|
};
|
|
|
|
jasmine.util.inherit(jasmine.WaitsBlock, jasmine.Block);
|
|
|
|
jasmine.WaitsBlock.prototype.execute = function (onComplete) {
|
|
if (jasmine.VERBOSE) {
|
|
this.env.reporter.log('>> Jasmine waiting for ' + this.timeout + ' ms...');
|
|
}
|
|
this.env.setTimeout(function () {
|
|
onComplete();
|
|
}, this.timeout);
|
|
};
|