Oops, revert unintentional commit.

This commit is contained in:
Christian Williams 2009-11-10 14:30:26 -05:00
parent 1982fb51c9
commit ff8b9d8375
1 changed files with 1 additions and 6 deletions

View File

@ -90,12 +90,7 @@ jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
var result = resultItems[i];
if (result.passed && !result.passed()) {
var resultMessageDiv = this.createDom('div', {className: 'resultMessage fail'});
var expectationMessage = "Expected " + jasmine.pp(result.actual) + " " + result.matcherName;
if ("expected" in result) {
expectationMessage += " " + jasmine.pp(result.expected);
}
resultMessageDiv.innerHTML = expectationMessage; // todo: lame; mend
resultMessageDiv.innerHTML = result.message; // todo: lame; mend
specDiv.appendChild(resultMessageDiv);
specDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack));
}