From: Jörn Zaefferer Date: Wed, 15 Nov 2006 10:08:08 +0000 (+0000) Subject: Added visual pass/fail indicator (JUnit/Eclipse style) X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=db621dd8ddf90259d4a170691fdd15574c2c011b;p=jquery.git Added visual pass/fail indicator (JUnit/Eclipse style) --- 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); + $("