Trivial Reporter improvements, runner now returns specs()

This commit is contained in:
ragaskar
2009-10-15 18:58:52 -07:00
parent 35171c9222
commit 308d02f72f
23 changed files with 2249 additions and 2157 deletions

View File

@@ -54,6 +54,15 @@ jasmine.Runner.prototype.getAllSuites = function() {
return this.suites_;
};
jasmine.Runner.prototype.specs = function () {
var suites = this.suites();
var specs = [];
for (var i = 0; i < suites.length; i++) {
specs = specs.concat(suites[i].specs());
}
return specs;
};
jasmine.Runner.prototype.suites = function() {
return this.suites_;