Bug 1375425 - Correct l10n service namespace; r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Thu, 22 Jun 2017 12:59:33 +0100
changeset 599073 a7027cc932449668998dccee21a22352ef566664
parent 599072 4ed8488f167fc44e073fe2f6224d3bb774558cff
child 599074 e7bd35b7801056f0490da1007e9e43badd1858fa
push id65422
push userbmo:ato@sny.no
push dateThu, 22 Jun 2017 17:49:17 +0000
reviewersautomatedtester
bugs1375425
milestone56.0a1
Bug 1375425 - Correct l10n service namespace; r?automatedtester We don't want to support multiple namespaces in service endpoints as it will add unecessary complexity when we in the future support enabling- and disabling services on an individual level. This patch drops the "localization" namespace and exposes "L10n:*". MozReview-Commit-ID: IhqG72vMohJ
testing/marionette/driver.js
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -3196,16 +3196,22 @@ GeckoDriver.prototype.commands = {
   "quit": GeckoDriver.prototype.quit,  // deprecated, remove in Firefox 60
 
   // Addon service
   "Addon:Install": GeckoDriver.prototype.installAddon,
   "addon:install": GeckoDriver.prototype.installAddon,  // deprecated, remove in Firefox 60
   "Addon:Uninstall": GeckoDriver.prototype.uninstallAddon,
   "addon:uninstall": GeckoDriver.prototype.uninstallAddon,  // deprecated, remove in Firefox 60
 
+  // L10n service
+  "L10n:LocalizeEntity": GeckoDriver.prototype.localizeEntity,
+  "localization:l10n:localizeEntity": GeckoDriver.prototype.localizeEntity,  // deprecated, remove in Firefox 60
+  "L10n:LocalizeProperty": GeckoDriver.prototype.localizeProperty,
+  "localization:l10n:localizeProperty": GeckoDriver.prototype.localizeProperty,  // deprecated, remove in Firefox 60
+
   "newSession": GeckoDriver.prototype.newSession,
   "getSessionCapabilities": GeckoDriver.prototype.getSessionCapabilities,
   "executeScript": GeckoDriver.prototype.executeScript,
   "getTimeouts": GeckoDriver.prototype.getTimeouts,
   "setTimeouts": GeckoDriver.prototype.setTimeouts,
   "singleTap": GeckoDriver.prototype.singleTap,
   "performActions": GeckoDriver.prototype.performActions,
   "releaseActions": GeckoDriver.prototype.releaseActions,
@@ -3264,19 +3270,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,
-
-  "localization:l10n:localizeEntity": GeckoDriver.prototype.localizeEntity,
-  "localization:l10n:localizeProperty": GeckoDriver.prototype.localizeProperty,
 };
 
 function copy (obj) {
   if (Array.isArray(obj)) {
     return obj.slice();
   } else if (typeof obj == "object") {
     return Object.assign({}, obj);
   }