From b9444892a068eb94107acfc1a8f106c3521979fc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 15 Mar 2016 01:18:01 -0400 Subject: [PATCH] Ring bell on test error if interactive shell --- test/content/runtests.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/content/runtests.js b/test/content/runtests.js index 266b7f93e7..73d90ec34f 100644 --- a/test/content/runtests.js +++ b/test/content/runtests.js @@ -137,6 +137,8 @@ function Reporter(runner) { dump("\r" + indentStr // Dark red X for errors + "\033[31;40m" + Mocha.reporters.Base.symbols.err + " [FAIL]\033[0m" + // Trigger bell if interactive + + (Zotero.noUserInput ? "" : "\007") + " " + test.title + "\n" + indentStr + " " + err.toString() + " at\n" + err.stack.replace(/^/gm, indentStr + " "));