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

@@ -530,7 +530,7 @@ jasmine.version_= {
"major": 0,
"minor": 9,
"build": 0,
"revision": 1255654784
"revision": 1255658178
};
/**
* @namespace
@@ -1665,6 +1665,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_;