Fix reporter bug.

This commit is contained in:
Christian Williams & Kim Eric Mittler 2009-08-17 13:40:32 -07:00
parent 1c9607ec33
commit 1573bf58c5
1 changed files with 1 additions and 3 deletions

View File

@ -40,8 +40,6 @@ jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
var suiteDiv = this.createDom('div', { className: 'suite' },
this.createDom('a', { className: 'runSpec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),
suite.description);
console.log(suite);
console.log(suite.getFullName());
this.suiteDivs[suite.getFullName()] = suiteDiv;
var parentDiv = this.document.body;
if (suite.parentSuite) {
@ -56,7 +54,7 @@ jasmine.TrivialReporter.prototype.reportRunnerResults = function(runner) {
var className = (results.failedCount > 0) ? "runner failed" : "runner passed";
this.runnerDiv.setAttribute("class", className);
var message = results.failedCount + " failure" + ((results.failedCount == 1) ? "" : "s");
this.runnerMessageSpan.replaceChild(this.document.createTextNode(message), this.runnerDiv.firstChild);
this.runnerMessageSpan.replaceChild(this.document.createTextNode(message), this.runnerMessageSpan.firstChild);
};
jasmine.TrivialReporter.prototype.reportSuiteResults = function(suite) {