Bug 991112 - Disable RDP logging for faster tests. r=vporof

--HG--
extra : rebase_source : 4a5b5b8001a7a9e1bf0aae3ecd6bb600b6d15154
This commit is contained in:
Panos Astithas 2014-04-03 18:22:49 +03:00
Родитель 0cdb7c7b4a
Коммит 6929a22b3c
3 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

@ -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", {});