зеркало из https://github.com/mozilla/gecko-dev.git
Bug 685926 - pass custom sync server url to mozmill framework, a=testonly, DONTBUILD
This commit is contained in:
Родитель
ebb95b4b48
Коммит
9cf07390b9
|
@ -94,6 +94,10 @@ var TPS = {
|
|||
},
|
||||
|
||||
SetupSyncAccount: function TPS__SetupSyncAccount() {
|
||||
let serverURL = prefs.getCharPref('tps.account.serverURL');
|
||||
if (serverURL) {
|
||||
Weave.Service.serverURL = serverURL;
|
||||
}
|
||||
Weave.Service.account = prefs.getCharPref('tps.account.username');
|
||||
Weave.Service.password = prefs.getCharPref('tps.account.password');
|
||||
Weave.Service.passphrase = prefs.getCharPref('tps.account.passphrase');
|
||||
|
|
|
@ -512,6 +512,9 @@ var TPS =
|
|||
prefs.setCharPref('tps.account.username', this.config.account.username);
|
||||
prefs.setCharPref('tps.account.password', this.config.account.password);
|
||||
prefs.setCharPref('tps.account.passphrase', this.config.account.passphrase);
|
||||
if (this.config.account['serverURL']) {
|
||||
prefs.setCharPref('tps.account.serverURL', this.config.account.serverURL);
|
||||
}
|
||||
|
||||
// start processing the test actions
|
||||
this._currentAction = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче