Removed jasmine.env.currentlyRunningTests, use reporter to determine if jasmine is running

This commit is contained in:
ragaskar
2009-10-24 17:01:40 -07:00
parent b35a2acfc8
commit 2059422955
20 changed files with 1523 additions and 1831 deletions
-1
View File
@@ -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();
-2
View File
@@ -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);
};
-2
View File
@@ -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() {