don't display debug information when running tests

This commit is contained in:
Régis Hanol 2013-08-14 00:12:25 +02:00
parent 4034dee3dc
commit e90bbc6a6c
2 changed files with 7 additions and 5 deletions

View File

@ -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 () {

View File

@ -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;