1 /** 2 * Runner 3 * 4 * @constructor 5 * @param {jasmine.Env} env 6 */ 7 jasmine.Runner = function(env) { 8 jasmine.ActionCollection.call(this, env); 9 10 this.suites = this.actions; 11 }; 12 jasmine.util.inherit(jasmine.Runner, jasmine.ActionCollection); 13 14 jasmine.Runner.prototype.finishCallback = function() { 15 if (this.env.reporter) { 16 this.env.reporter.reportRunnerResults(this); 17 } 18 }; 19 20 jasmine.Runner.prototype.getResults = function() { 21 var results = new jasmine.NestedResults(); 22 for (var i = 0; i < this.suites.length; i++) { 23 results.rollupCounts(this.suites[i].getResults()); 24 } 25 return results; 26 }; 27