lib/jazrb/jasmine/TrivialReporter.js in smparkes-jazrb-0.0.10 vs lib/jazrb/jasmine/TrivialReporter.js in smparkes-jazrb-0.0.11

- old
+ new

@@ -87,12 +87,10 @@ var resultItems = results.getItems(); for (var i = 0; i < resultItems.length; i++) { var result = resultItems[i]; if (result.passed && !result.passed()) { - var resultMessageDiv = this.createDom('div', {className: 'resultMessage fail'}); - resultMessageDiv.innerHTML = result.message; // todo: lame; mend - specDiv.appendChild(resultMessageDiv); + specDiv.appendChild(this.createDom('div', {className: 'resultMessage fail'}, result.message)); specDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack)); } } this.suiteDivs[spec.suite.getFullName()].appendChild(specDiv); };