Moved currentlyRunningTests to Runner instead of spec
This commit is contained in:
@@ -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();
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user