2009-05-29 03:02:15 +00:00
|
|
|
/**
|
|
|
|
* Runner
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {jasmine.Env} env
|
|
|
|
*/
|
|
|
|
jasmine.Runner = function(env) {
|
|
|
|
jasmine.ActionCollection.call(this, env);
|
|
|
|
|
|
|
|
this.suites = this.actions;
|
|
|
|
};
|
|
|
|
jasmine.util.inherit(jasmine.Runner, jasmine.ActionCollection);
|
|
|
|
|
|
|
|
jasmine.Runner.prototype.finishCallback = function() {
|
2009-07-09 01:01:05 +00:00
|
|
|
this.env.reporter.reportRunnerResults(this);
|
2009-05-29 03:02:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
jasmine.Runner.prototype.getResults = function() {
|
|
|
|
var results = new jasmine.NestedResults();
|
|
|
|
for (var i = 0; i < this.suites.length; i++) {
|
|
|
|
results.rollupCounts(this.suites[i].getResults());
|
|
|
|
}
|
|
|
|
return results;
|
|
|
|
};
|