From ab7678e7132c13b69fe04126a71d8e11335fb418 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Fri, 4 Jun 2010 14:45:42 -0400 Subject: [PATCH] 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. --- src/WaitsForBlock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WaitsForBlock.js b/src/WaitsForBlock.js index 927a38d..f5f3d2c 100644 --- a/src/WaitsForBlock.js +++ b/src/WaitsForBlock.js @@ -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);