Merge pull request #1321 from ZogStriP/i-want-my-dots-back

don't display debug information when running tests
This commit is contained in:
Robin Ward 2013-08-13 17:28:51 -07:00
commit f517df6768
2 changed files with 7 additions and 5 deletions

View File

@ -6,7 +6,7 @@
// //
// https://github.com/eviltrout/ember-renderspeed // https://github.com/eviltrout/ember-renderspeed
// //
if ((typeof console !== 'undefined') && console.groupCollapsed) { if ((typeof console !== 'undefined') && console.groupCollapsed && !window.QUnit) {
(function () { (function () {

View File

@ -4864,10 +4864,12 @@ define("backburner",
} }
} }
var diff = new Date().getTime() - t2; // make sure we can output to the console and we're not running QUnit tests
if ((typeof console !== 'undefined') && console.log && !window.QUnit) {
if ((typeof console !== 'undefined') && console.log && diff > 10) { var diff = new Date().getTime() - t2;
console.log("Backburner: " + (new Date() - t2) + "ms"); if (diff > 10) {
console.log("Backburner: " + (new Date() - t2) + "ms");
}
} }
return ret; return ret;