Bug 685926 - pass custom sync server url to mozmill framework, a=testonly, DONTBUILD

This commit is contained in:
Jonathan Griffin 2011-09-09 10:27:17 -07:00
parent ebb95b4b48
commit 9cf07390b9
2 changed files with 7 additions and 0 deletions

View File

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

View File

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