Apply patch from Eric Pabst (May 18, 2010):

Replaced call to self.spec._next() with onComplete() when the test times out.

This is because there is no such function as _next(), and onComplete() seems to
do the right thing.
This commit is contained in:
Christian Williams 2010-06-04 14:45:42 -04:00
parent a2041e90a6
commit ab7678e713

View File

@ -30,7 +30,7 @@ jasmine.WaitsForBlock.prototype.execute = function (onComplete) {
name: 'timeout',
message: message
});
self.spec._next();
onComplete();
} else {
self.totalTimeSpentWaitingForLatch += jasmine.WaitsForBlock.TIMEOUT_INCREMENT;
self.env.setTimeout(function () { self.execute(onComplete); }, jasmine.WaitsForBlock.TIMEOUT_INCREMENT);