From 44726089945f9294fe15e79ffaa80e74da56798f Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 2 Oct 2012 18:03:22 +0200 Subject: [PATCH] Write test status to dom rather than console --- test/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/index.html b/test/index.html index e77019a883..2bc5a3709c 100644 --- a/test/index.html +++ b/test/index.html @@ -16,8 +16,9 @@ window.onload = function(){ var t0 = +new Date; runTests(report); - console.log(testsRun + " tests run in " + (+new Date - t0) + "ms"); - if (failed) console.log(failed + " failures."); - else console.log("All passed."); + var out = testsRun + " tests run in " + (+new Date - t0) + "ms\n"; + if (failed) out += failed + " failures.\n"; + else out += "All passed.\n"; + document.body.appendChild(document.createElement("pre")).appendChild(document.createTextNode(out)); };