diff --git a/app/assets/javascripts/external/ember-renderspeed.js b/app/assets/javascripts/external/ember-renderspeed.js index 17312ee8272..c7089c007be 100644 --- a/app/assets/javascripts/external/ember-renderspeed.js +++ b/app/assets/javascripts/external/ember-renderspeed.js @@ -6,7 +6,7 @@ // // https://github.com/eviltrout/ember-renderspeed // -if ((typeof console !== 'undefined') && console.groupCollapsed) { +if ((typeof console !== 'undefined') && console.groupCollapsed && !window.QUnit) { (function () { diff --git a/app/assets/javascripts/external_development/ember.js b/app/assets/javascripts/external_development/ember.js index 67f33ab419d..8f571c2af7b 100755 --- a/app/assets/javascripts/external_development/ember.js +++ b/app/assets/javascripts/external_development/ember.js @@ -4864,10 +4864,12 @@ define("backburner", } } - var diff = new Date().getTime() - t2; - - if ((typeof console !== 'undefined') && console.log && diff > 10) { - console.log("Backburner: " + (new Date() - t2) + "ms"); + // make sure we can output to the console and we're not running QUnit tests + if ((typeof console !== 'undefined') && console.log && !window.QUnit) { + var diff = new Date().getTime() - t2; + if (diff > 10) { + console.log("Backburner: " + (new Date() - t2) + "ms"); + } } return ret;