2009-07-30 05:27:11 +00:00
|
|
|
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 () {
|
|
|
|
var self = this;
|
|
|
|
self.env.reporter.log('>> Jasmine waiting for ' + this.timeout + ' ms...');
|
|
|
|
self.env.setTimeout(function () {
|
2009-08-01 22:28:39 +00:00
|
|
|
self._next();
|
2009-07-30 05:27:11 +00:00
|
|
|
}, self.timeout);
|
|
|
|
};
|