[Pkg-javascript-commits] [node-acorn-jsx] 20/484: Write test status to dom rather than console

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:19:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 44726089945f9294fe15e79ffaa80e74da56798f
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Tue Oct 2 18:03:22 2012 +0200

    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 e77019a..2bc5a37 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));
   };
 </script>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list