From 2a4241323d5a8367fbd2646bec07b1b3a7371878 Mon Sep 17 00:00:00 2001 From: ragaskar Date: Wed, 19 Aug 2009 07:55:51 -0700 Subject: [PATCH] Permit focused running with Queue-based runner --- spec/runner.html | 14 ++++++++++---- src/Spec.js | 4 +--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/spec/runner.html b/spec/runner.html index 5d54a32..70e344f 100644 --- a/spec/runner.html +++ b/spec/runner.html @@ -3,7 +3,7 @@ Jasmine Test Runner - + @@ -41,15 +41,21 @@ - + diff --git a/src/Spec.js b/src/Spec.js index 879671d..e56a3d2 100644 --- a/src/Spec.js +++ b/src/Spec.js @@ -14,7 +14,6 @@ jasmine.Spec = function(env, suite, description) { spec.description = description; spec.queue = new jasmine.Queue(env); - spec.finished = false; spec.afterCallbacks = []; spec.spies_ = []; @@ -117,8 +116,7 @@ jasmine.Spec.prototype.execute = function(onComplete) { var spec = this; if (!spec.env.specFilter(spec)) { spec.results.skipped = true; - spec.finishCallback(); - spec.finished = true; + spec.finish(onComplete); return; }