Color suites to reflect spec pass/fail status.

This commit is contained in:
Aaron Peckham & Christian Williams 2009-08-10 17:54:20 -07:00
parent 4b244612c1
commit 2ef71580ad
1 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,12 @@ jasmine.TrivialReporter.prototype.reportRunnerResults = function(runner) {
};
jasmine.TrivialReporter.prototype.reportSuiteResults = function(suite) {
var results = suite.getResults();
var status = results.passed() ? 'passed' : 'failed';
if (results.totalCount == 0) { // todo: change this to check results.skipped
status = 'skipped';
}
this.suiteDivs[suite.getFullName()].className += " " + status;
};
jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {