Bug 1123506 - Update references to __webDriverArguments; r=automatedtester

__marionetteParams was renamed to __webDriverArguments.

MozReview-Commit-ID: 9t1skl5MESf
This commit is contained in:
Andreas Tolfsen 2016-05-09 13:34:06 +01:00
parent 1d15796afc
commit 90edca9757
4 changed files with 12 additions and 12 deletions

View File

@ -5,12 +5,12 @@
const { utils: Cu, classes: Cc, interfaces: Ci } = Components;
function setPermissions() {
if (__marionetteParams.length < 2) {
if (__webDriverArguments.length < 2) {
return;
}
let serverAddr = __marionetteParams[0];
let serverPort = __marionetteParams[1];
let serverAddr = __webDriverArguments[0];
let serverPort = __webDriverArguments[1];
let perms = Cc["@mozilla.org/permissionmanager;1"]
.getService(Ci.nsIPermissionManager);
let ioService = Cc["@mozilla.org/network/io-service;1"]

View File

@ -239,8 +239,8 @@ function runUpdateTest(stage) {
}
var updateArgs;
if (__marionetteParams) {
updateArgs = __marionetteParams[0];
if (__webDriverArguments) {
updateArgs = __webDriverArguments[0];
}
function cleanUp() {

View File

@ -2,11 +2,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var outOfProcess = __marionetteParams[0]
var mochitestUrl = __marionetteParams[1]
var onDevice = __marionetteParams[2]
var wifiSettings = __marionetteParams[3]
var chrome = __marionetteParams[4]
var outOfProcess = __webDriverArguments[0]
var mochitestUrl = __webDriverArguments[1]
var onDevice = __webDriverArguments[2]
var wifiSettings = __webDriverArguments[3]
var chrome = __webDriverArguments[4]
var prefs = Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefBranch)
var settings = window.navigator.mozSettings;

View File

@ -2,8 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const flavor = __marionetteParams[0]
const url = __marionetteParams[1]
const flavor = __webDriverArguments[0]
const url = __webDriverArguments[1]
let wm = Cc["@mozilla.org/appshell/window-mediator;1"]
.getService(Ci.nsIWindowMediator);