fix a bug related to displaying test results

This commit is contained in:
rolux 2012-06-20 17:13:43 +02:00
parent 770c0c9653
commit 11377c99b9

View file

@ -212,7 +212,10 @@ Ox.DocPage = function(options, self) {
.css({marginLeft: (level * 32 + 16) + 'px'})
.html(
'<code>'
+ Ox.encodeHTMLEntities(test.actual || test.expected)
+ Ox.encodeHTMLEntities(
test.passed === false && !isAsync
? test.actual : test.expected
)
+ (
test.passed === false && !isAsync
? ' <span class="OxFailed"> // expected: '