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:
parent
a2041e90a6
commit
ab7678e713
|
@ -30,7 +30,7 @@ jasmine.WaitsForBlock.prototype.execute = function (onComplete) {
|
||||||
name: 'timeout',
|
name: 'timeout',
|
||||||
message: message
|
message: message
|
||||||
});
|
});
|
||||||
self.spec._next();
|
onComplete();
|
||||||
} else {
|
} else {
|
||||||
self.totalTimeSpentWaitingForLatch += jasmine.WaitsForBlock.TIMEOUT_INCREMENT;
|
self.totalTimeSpentWaitingForLatch += jasmine.WaitsForBlock.TIMEOUT_INCREMENT;
|
||||||
self.env.setTimeout(function () { self.execute(onComplete); }, jasmine.WaitsForBlock.TIMEOUT_INCREMENT);
|
self.env.setTimeout(function () { self.execute(onComplete); }, jasmine.WaitsForBlock.TIMEOUT_INCREMENT);
|
||||||
|
|
Loading…
Reference in New Issue