From 11377c99b9b7c27ce691d23bdac945df6e71f9be Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Jun 2012 17:13:43 +0200 Subject: [PATCH] fix a bug related to displaying test results --- source/Ox.UI/js/Code/DocPage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Code/DocPage.js b/source/Ox.UI/js/Code/DocPage.js index d66041a4..5d4a77c5 100644 --- a/source/Ox.UI/js/Code/DocPage.js +++ b/source/Ox.UI/js/Code/DocPage.js @@ -212,7 +212,10 @@ Ox.DocPage = function(options, self) { .css({marginLeft: (level * 32 + 16) + 'px'}) .html( '' - + Ox.encodeHTMLEntities(test.actual || test.expected) + + Ox.encodeHTMLEntities( + test.passed === false && !isAsync + ? test.actual : test.expected + ) + ( test.passed === false && !isAsync ? ' // expected: '