Fixed bug: waitsFor() hangs forever if latch function never returns true.
This commit is contained in:
@@ -39,7 +39,9 @@ jasmine.WaitsForBlock.prototype.execute = function(onComplete) {
|
||||
name: 'timeout',
|
||||
message: message
|
||||
});
|
||||
// todo: need to prevent additional blocks in this spec from running... [xw 20100819]
|
||||
|
||||
this.abort = true;
|
||||
onComplete();
|
||||
} else {
|
||||
this.totalTimeSpentWaitingForLatch += jasmine.WaitsForBlock.TIMEOUT_INCREMENT;
|
||||
var self = this;
|
||||
|
||||
Reference in New Issue
Block a user