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:
Eric Pabst 2010-05-18 23:18:42 +08:00 committed by Christian Williams
parent a2041e90a6
commit 6431431dfc
1 changed files with 1 additions and 1 deletions

View File

@ -2139,7 +2139,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);