TrivialReporter matcher message spec. Simplified TrivialReporter createDom.

This commit is contained in:
ragaskar
2009-10-27 22:18:38 -07:00
parent 6a467fc00e
commit 8b23698852
21 changed files with 175 additions and 145 deletions

View File

@@ -17,13 +17,7 @@ jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarA
}
for (var attr in attrs) {
if (attr == 'className') {
el.setAttribute('class', attrs[attr]);
//twice for ie
el.setAttribute('className', attrs[attr]);
} else {
el[attr] = attrs[attr];
}
}
return el;
@@ -101,7 +95,6 @@ jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
specDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack));
}
}
this.suiteDivs[spec.suite.getFullName()].appendChild(specDiv);
};