Bug 1375425 - Namespace the Marionette service; r?automatedtester
The Marionette service provides commands that are specific to Marionette
operation, such as setting the target (context) for all other commands,
deciding whether to accept new connections, and quitting the browser.
MozReview-Commit-ID: 7NIbaAUzybx
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -3180,20 +3180,28 @@ GeckoDriver.prototype.localizeProperty =
if (typeof id != "string") {
throw new InvalidArgumentError("Value of `id` should be of type 'string'");
}
resp.body.value = l10n.localizeProperty(urls, id);
}
GeckoDriver.prototype.commands = {
+ // Marionette service
+ "Marionette:SetContext": GeckoDriver.prototype.setContext,
+ "setContext": GeckoDriver.prototype.setContext, // deprecated, remove in Firefox 60
+ "Marionette:GetContext": GeckoDriver.prototype.getContext,
+ "getContext": GeckoDriver.prototype.getContext,
+ "Marionette:AcceptConnections": GeckoDriver.prototype.acceptConnections,
+ "acceptConnections": GeckoDriver.prototype.acceptConnections, // deprecated, remove in Firefox 60
+ "Marionette:Quit": GeckoDriver.prototype.quit,
+ "quit": GeckoDriver.prototype.quit, // deprecated, remove in Firefox 60
+
"newSession": GeckoDriver.prototype.newSession,
"getSessionCapabilities": GeckoDriver.prototype.getSessionCapabilities,
- "setContext": GeckoDriver.prototype.setContext,
- "getContext": GeckoDriver.prototype.getContext,
"executeScript": GeckoDriver.prototype.executeScript,
"getTimeouts": GeckoDriver.prototype.getTimeouts,
"setTimeouts": GeckoDriver.prototype.setTimeouts,
"singleTap": GeckoDriver.prototype.singleTap,
"performActions": GeckoDriver.prototype.performActions,
"releaseActions": GeckoDriver.prototype.releaseActions,
"actionChain": GeckoDriver.prototype.actionChain, // deprecated
"multiAction": GeckoDriver.prototype.multiAction, // deprecated
@@ -3250,18 +3258,16 @@ GeckoDriver.prototype.commands = {
"getWindowSize": GeckoDriver.prototype.getWindowRect, // Redirecting for compatibility
"setWindowSize": GeckoDriver.prototype.setWindowRect, // Redirecting for compatibility
"maximizeWindow": GeckoDriver.prototype.maximizeWindow,
"fullscreen": GeckoDriver.prototype.fullscreen,
"dismissDialog": GeckoDriver.prototype.dismissDialog,
"acceptDialog": GeckoDriver.prototype.acceptDialog,
"getTextFromDialog": GeckoDriver.prototype.getTextFromDialog,
"sendKeysToDialog": GeckoDriver.prototype.sendKeysToDialog,
- "acceptConnections": GeckoDriver.prototype.acceptConnections,
- "quit": GeckoDriver.prototype.quit,
"localization:l10n:localizeEntity": GeckoDriver.prototype.localizeEntity,
"localization:l10n:localizeProperty": GeckoDriver.prototype.localizeProperty,
"addon:install": GeckoDriver.prototype.installAddon,
"addon:uninstall": GeckoDriver.prototype.uninstallAddon,
};