Deprecated getAllSuites

This commit is contained in:
ragaskar
2009-09-02 07:52:11 -07:00
parent 4533d6a7cd
commit 43f819e9e2
25 changed files with 49 additions and 39 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ jasmine.JsApiReporter = function() {
jasmine.JsApiReporter.prototype.reportRunnerStarting = function(runner) {
this.started = true;
var suites = runner.getAllSuites();
var suites = runner.suites();
for (var i = 0; i < suites.length; i++) {
var suite = suites[i];
this.suites.push(this.summarize_(suite));
+9 -4
View File
@@ -8,7 +8,7 @@ jasmine.Runner = function(env) {
var self = this;
self.env = env;
self.queue = new jasmine.Queue(env);
self.suites = [];
self.suites_ = [];
};
jasmine.Runner.prototype.execute = function() {
@@ -26,7 +26,7 @@ jasmine.Runner.prototype.finishCallback = function() {
};
jasmine.Runner.prototype.addSuite = function(suite) {
this.suites.push(suite);
this.suites_.push(suite);
};
jasmine.Runner.prototype.add = function(block) {
@@ -36,9 +36,14 @@ jasmine.Runner.prototype.add = function(block) {
this.queue.add(block);
};
/** @deprecated */
jasmine.Runner.prototype.getAllSuites = function() {
return this.suites;
return this.suites_;
};
jasmine.Runner.prototype.suites = function() {
return this.suites_;
};
jasmine.Runner.prototype.getResults = function() {
+1
View File
@@ -58,6 +58,7 @@ jasmine.Suite.prototype.add = function(block) {
this.queue.add(block);
};
/** @deprecated */
jasmine.Suite.prototype.specCount = function() {
return this.specs_.length;
};