Fix reporter bug.
This commit is contained in:
parent
1c9607ec33
commit
1573bf58c5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user