Removed jasmine.env.currentlyRunningTests, use reporter to determine if jasmine is running
This commit is contained in:
@@ -7,7 +7,6 @@ jasmine.Env = function() {
|
||||
this.currentSpec = null;
|
||||
this.currentSuite = null;
|
||||
this.currentRunner_ = new jasmine.Runner(this);
|
||||
this.currentlyRunningTests = false;
|
||||
|
||||
this.reporter = new jasmine.MultiReporter();
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ 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 () {
|
||||
@@ -36,7 +35,6 @@ jasmine.Runner.prototype.afterEach = function(afterEachFunction) {
|
||||
|
||||
|
||||
jasmine.Runner.prototype.finishCallback = function() {
|
||||
this.env.currentlyRunningTests = true;
|
||||
this.env.reporter.reportRunnerResults(this);
|
||||
};
|
||||
|
||||
|
||||
@@ -124,14 +124,12 @@ jasmine.Spec.prototype.execute = function(onComplete) {
|
||||
this.env.reporter.log('>> Jasmine Running ' + this.suite.description + ' ' + this.description + '...');
|
||||
|
||||
spec.env.currentSpec = spec;
|
||||
spec.env.currentlyRunningTests = true;
|
||||
|
||||
spec.addBeforesAndAftersToQueue();
|
||||
|
||||
spec.queue.start(function () {
|
||||
spec.finish(onComplete);
|
||||
});
|
||||
spec.env.currentlyRunningTests = false;
|
||||
};
|
||||
|
||||
jasmine.Spec.prototype.addBeforesAndAftersToQueue = function() {
|
||||
|
||||
Reference in New Issue
Block a user