From f0df0d7bf2101a63bf791196695f660467385fe3 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Tue, 30 Apr 2013 18:44:04 +0200 Subject: [PATCH] Display test errors in Chrome's console, thanks @Turbo87 --- test/mocha-1.8.1/mocha.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/mocha-1.8.1/mocha.js b/test/mocha-1.8.1/mocha.js index f01d356ac5..48989958a9 100644 --- a/test/mocha-1.8.1/mocha.js +++ b/test/mocha-1.8.1/mocha.js @@ -2370,6 +2370,12 @@ function HTML(runner, root) { } el.appendChild(fragment('
%e
', str)); + + // Display errors in Chrome's console + if (window.chrome) { + window.console.error(str); + } + } // toggle code