From 6929a22b3cdf117112bcae03856e9c743fda3fcf Mon Sep 17 00:00:00 2001 From: Panos Astithas Date: Thu, 3 Apr 2014 18:22:49 +0300 Subject: [PATCH] Bug 991112 - Disable RDP logging for faster tests. r=vporof --HG-- extra : rebase_source : 4a5b5b8001a7a9e1bf0aae3ecd6bb600b6d15154 --- browser/devtools/debugger/test/browser_dbg_chrome-create.js | 3 --- browser/devtools/netmonitor/test/head.js | 4 ++-- browser/devtools/shadereditor/test/head.js | 5 ++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/browser/devtools/debugger/test/browser_dbg_chrome-create.js b/browser/devtools/debugger/test/browser_dbg_chrome-create.js index a2c8a5cbefd1..df30e7de9dd6 100644 --- a/browser/devtools/debugger/test/browser_dbg_chrome-create.js +++ b/browser/devtools/debugger/test/browser_dbg_chrome-create.js @@ -5,9 +5,6 @@ * Tests that a chrome debugger can be created in a new process. */ -// Enable logging for this test, bug 860349. -Services.prefs.setBoolPref("devtools.debugger.log", true); - let gProcess; function test() { diff --git a/browser/devtools/netmonitor/test/head.js b/browser/devtools/netmonitor/test/head.js index 476f72007f62..376f02a7483b 100644 --- a/browser/devtools/netmonitor/test/head.js +++ b/browser/devtools/netmonitor/test/head.js @@ -55,9 +55,9 @@ SimpleTest.registerCleanupFunction(() => { // All tests are asynchronous. waitForExplicitFinish(); -// Enable logging for all the relevant tests. const gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log"); -Services.prefs.setBoolPref("devtools.debugger.log", true); +// To enable logging for try runs, just set the pref to true. +Services.prefs.setBoolPref("devtools.debugger.log", false); // Always reset some prefs to their original values after the test finishes. const gDefaultFilters = Services.prefs.getCharPref("devtools.netmonitor.filters"); diff --git a/browser/devtools/shadereditor/test/head.js b/browser/devtools/shadereditor/test/head.js index 02c9d7b6861b..cbd613a8245a 100644 --- a/browser/devtools/shadereditor/test/head.js +++ b/browser/devtools/shadereditor/test/head.js @@ -6,10 +6,9 @@ const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components; let { Services } = Cu.import("resource://gre/modules/Services.jsm", {}); -// Enable logging for all the tests. Both the debugger server and frontend will -// be affected by this pref. let gEnableLogging = Services.prefs.getBoolPref("devtools.debugger.log"); -Services.prefs.setBoolPref("devtools.debugger.log", true); +// To enable logging for try runs, just set the pref to true. +Services.prefs.setBoolPref("devtools.debugger.log", false); let { Task } = Cu.import("resource://gre/modules/Task.jsm", {}); let { Promise: promise } = Cu.import("resource://gre/modules/Promise.jsm", {});