mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1003652 - Turn on debugging in marionette test. r=hsinyi, jgriffin
This commit is contained in:
parent
dd08048fee
commit
79170f6188
@ -5,6 +5,8 @@ let Promise = SpecialPowers.Cu.import("resource://gre/modules/Promise.jsm").Prom
|
||||
let telephony;
|
||||
let conference;
|
||||
|
||||
const kPrefRilDebuggingEnabled = "ril.debugging.enabled";
|
||||
|
||||
/**
|
||||
* Emulator helper.
|
||||
*/
|
||||
@ -1080,9 +1082,18 @@ function _startTest(permissions, test) {
|
||||
}
|
||||
}
|
||||
|
||||
let debugPref;
|
||||
|
||||
function setUp() {
|
||||
log("== Test SetUp ==");
|
||||
|
||||
// Turn on debugging pref.
|
||||
debugPref = SpecialPowers.getBoolPref(kPrefRilDebuggingEnabled);
|
||||
SpecialPowers.setBoolPref(kPrefRilDebuggingEnabled, true);
|
||||
log("Set debugging pref: " + debugPref + " => true");
|
||||
|
||||
permissionSetUp();
|
||||
|
||||
// Make sure that we get the telephony after adding permission.
|
||||
telephony = window.navigator.mozTelephony;
|
||||
ok(telephony);
|
||||
@ -1100,7 +1111,13 @@ function _startTest(permissions, test) {
|
||||
log("== Test TearDown ==");
|
||||
restoreTelephonyDial();
|
||||
emulator.waitFinish()
|
||||
.then(permissionTearDown)
|
||||
.then(() => {
|
||||
permissionTearDown();
|
||||
|
||||
// Restore debugging pref.
|
||||
SpecialPowers.setBoolPref(kPrefRilDebuggingEnabled, debugPref);
|
||||
log("Set debugging pref: true => " + debugPref);
|
||||
})
|
||||
.then(function() {
|
||||
originalFinish.apply(this, arguments);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user