Moved currentlyRunningTests to Runner instead of spec

This commit is contained in:
Erik Hanson & Rajan Agaskar
2009-10-21 09:33:31 -07:00
parent e77162f308
commit b35a2acfc8
18 changed files with 2247 additions and 2396 deletions

View File

@@ -16,6 +16,7 @@ jasmine.Runner = function(env) {
jasmine.Runner.prototype.execute = function() {
var self = this;
if (self.env.reporter.reportRunnerStarting) {
self.env.currentlyRunningTests = true;
self.env.reporter.reportRunnerStarting(this);
}
self.queue.start(function () {
@@ -35,6 +36,7 @@ jasmine.Runner.prototype.afterEach = function(afterEachFunction) {
jasmine.Runner.prototype.finishCallback = function() {
this.env.currentlyRunningTests = true;
this.env.reporter.reportRunnerResults(this);
};
@@ -65,4 +67,4 @@ jasmine.Runner.prototype.suites = function() {
jasmine.Runner.prototype.results = function() {
return this.queue.results();
};
};