From c831b89944ef1a7a79f9cb60732369dd464cd517 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 30 May 2012 13:33:37 +0200 Subject: [PATCH] fix a bug that would keep test results from being displayed --- source/Ox.UI/js/Code/DocPage.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Code/DocPage.js b/source/Ox.UI/js/Code/DocPage.js index af19a42f..e1d75b43 100644 --- a/source/Ox.UI/js/Code/DocPage.js +++ b/source/Ox.UI/js/Code/DocPage.js @@ -169,11 +169,11 @@ Ox.DocPage = function(options, self) { + '' ) ); - test.result && $elements.push($('
') + test.expected && $elements.push($('
') .addClass(className) .css({marginLeft: (level * 32 + 16) + 'px'}) .html( - '' + Ox.encodeHTMLEntities(test.result) + '' + '' + Ox.encodeHTMLEntities(test.expected) + '' ) ) }); @@ -183,7 +183,8 @@ Ox.DocPage = function(options, self) { .addClass(className) .css({marginLeft: 16 + 'px'}) .html( - '' + self.options.item.file.replace(Ox.PATH, '') + '' + + self.options.item.file.replace(Ox.PATH, '') + ':' + self.options.item.line + '' ) );