From db621dd8ddf90259d4a170691fdd15574c2c011b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Wed, 15 Nov 2006 10:08:08 +0000 Subject: [PATCH] Added visual pass/fail indicator (JUnit/Eclipse style) --- build/test/data/testrunner.js | 7 ++++--- build/test/data/testsuite.css | 8 ++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index cf4777d..06d12cb 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -43,10 +43,11 @@ function runTest(tests) { synchronize(function() { var runTime = new Date() - startTime; var result = document.createElement("div"); - result.innerHTML = '

Tests completed in ' + - runTime + ' milliseconds.
' + - stats.bad + ' tests of ' + stats.all + ' failed.

'; + result.innerHTML = ['

Tests completed in ', + runTime, ' milliseconds.
', + stats.bad, ' tests of ', stats.all, ' failed.

'].join(''); document.getElementsByTagName("body")[0].appendChild(result); + $("