fix a bug that would keep test results from being displayed

This commit is contained in:
rolux 2012-05-30 13:33:37 +02:00
parent 07369fefec
commit c831b89944

View file

@ -169,11 +169,11 @@ Ox.DocPage = function(options, self) {
+ '</b></code>'
)
);
test.result && $elements.push($('<div>')
test.expected && $elements.push($('<div>')
.addClass(className)
.css({marginLeft: (level * 32 + 16) + 'px'})
.html(
'<code>' + Ox.encodeHTMLEntities(test.result) + '</code>'
'<code>' + Ox.encodeHTMLEntities(test.expected) + '</code>'
)
)
});
@ -183,7 +183,8 @@ Ox.DocPage = function(options, self) {
.addClass(className)
.css({marginLeft: 16 + 'px'})
.html(
'<code><b>' + self.options.item.file.replace(Ox.PATH, '')
'<code><b>'
+ self.options.item.file.replace(Ox.PATH, '')
+ '</b>:' + self.options.item.line + '</code>'
)
);