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

View File

@@ -530,7 +530,7 @@ jasmine.version_= {
"major": 0,
"minor": 10,
"build": 0,
"revision": 1256142778
"revision": 1256428843
};
/**
* @namespace
@@ -600,7 +600,6 @@ jasmine.Env = function() {
this.currentSpec = null;
this.currentSuite = null;
this.currentRunner_ = new jasmine.Runner(this);
this.currentlyRunningTests = false;
this.reporter = new jasmine.MultiReporter();
@@ -1602,7 +1601,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 () {
@@ -1622,7 +1620,6 @@ jasmine.Runner.prototype.afterEach = function(afterEachFunction) {
jasmine.Runner.prototype.finishCallback = function() {
this.env.currentlyRunningTests = true;
this.env.reporter.reportRunnerResults(this);
};
@@ -1780,14 +1777,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() {