From 8254e2aa22d4e967976561407038f8387e12c32b Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Tue, 6 Nov 2018 13:55:09 -0800 Subject: [PATCH] Failing unit tests no longer show useful info. --- tests/jsunit/test_utilities.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/jsunit/test_utilities.js b/tests/jsunit/test_utilities.js index 36469ee29..77d389a58 100644 --- a/tests/jsunit/test_utilities.js +++ b/tests/jsunit/test_utilities.js @@ -33,6 +33,10 @@ goog.require('goog.testing'); */ var savedFireFunc = Blockly.Events.fire; +// Asserts must be disabled or else errors can't be shown when running on +// file:// URLs. +goog.asserts.ENABLE_ASSERTS = false; + /** * A helper function to replace Blockly.Events.fire in tests. */