From 1573bf58c5c79b293f02e3281902ef4a6e5917f3 Mon Sep 17 00:00:00 2001 From: Christian Williams & Kim Eric Mittler Date: Mon, 17 Aug 2009 13:40:32 -0700 Subject: [PATCH] Fix reporter bug. --- lib/TrivialReporter.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/TrivialReporter.js b/lib/TrivialReporter.js index 806c545..8317007 100644 --- a/lib/TrivialReporter.js +++ b/lib/TrivialReporter.js @@ -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) {