fix a bug related to displaying test results
This commit is contained in:
parent
770c0c9653
commit
11377c99b9
1 changed files with 4 additions and 1 deletions
|
@ -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: '
|
||||
|
|
Loading…
Reference in a new issue