From 6431431dfcb7b0249e9373ced9dbe392c00f8b46 Mon Sep 17 00:00:00 2001 From: Eric Pabst Date: Tue, 18 May 2010 23:18:42 +0800 Subject: [PATCH] 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. --- lib/jasmine-0.10.3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine-0.10.3.js b/lib/jasmine-0.10.3.js index 48a63fd..f6dee6a 100644 --- a/lib/jasmine-0.10.3.js +++ b/lib/jasmine-0.10.3.js @@ -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);