Refactored into class files. Meta-tests and runner for jasmine. Stack traces available for Firefox and supported browsers. Experimental pretty print matcher support. Many other new features

This commit is contained in:
ragaskar
2009-05-28 20:02:15 -07:00
parent cabc666505
commit 9d95483de6
29 changed files with 3249 additions and 1717 deletions

26
src/Runner.js Normal file
View File

@@ -0,0 +1,26 @@
/**
* 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() {
if (this.env.reporter) {
this.env.reporter.reportRunnerResults(this);
}
};
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;
};