diff --git a/src/widgets/StatusBar.js b/src/widgets/StatusBar.js index 6a86fb0fd1d..3aaa7f86486 100644 --- a/src/widgets/StatusBar.js +++ b/src/widgets/StatusBar.js @@ -145,7 +145,7 @@ define(function (require, exports, module) { * @param {string=} tooltip Sets the attribute "title" of the indicator. */ function updateIndicator(id, visible, style, tooltip) { - if (!_init) { + if (!_init && !!brackets.test) { console.error("StatusBar API invoked before status bar created"); return; } diff --git a/test/SpecRunner.js b/test/SpecRunner.js index 8a19910a48e..4f3dbe82ccb 100644 --- a/test/SpecRunner.js +++ b/test/SpecRunner.js @@ -55,6 +55,7 @@ define(function (require, exports, module) { NativeApp = require("utils/NativeApp"); // Load modules for later use + require("language/CodeInspection"); require("thirdparty/lodash"); require("editor/CodeHintManager"); require("utils/Global");