Bug 1391952 - Disable camel case lint for input and output. r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Sat, 19 Aug 2017 14:21:43 +0100
changeset 649878 8c22bf93cc03a8f8047cc6b5b1a1891c253c02ee
parent 649877 6fe49cbfbf8f87ecd979a07c8237ac6de7a8aa67
child 649879 ccce76ac5c6a5c90deb8eb46df70fe0f392d0fb9
push id75183
push userbmo:ato@sny.no
push dateMon, 21 Aug 2017 12:43:49 +0000
reviewersautomatedtester
bugs1391952
milestone57.0a1
Bug 1391952 - Disable camel case lint for input and output. r?automatedtester MozReview-Commit-ID: 5KargkSvSPn
testing/marionette/components/marionette.js
testing/marionette/driver.js
testing/marionette/reftest.js
--- a/testing/marionette/components/marionette.js
+++ b/testing/marionette/components/marionette.js
@@ -171,16 +171,17 @@ function MarionetteComponent() {
 MarionetteComponent.prototype = {
   classDescription: "Marionette component",
   classID: MARIONETTE_CID,
   contractID: MARIONETTE_CONTRACT_ID,
   QueryInterface: XPCOMUtils.generateQI([
     Ci.nsICommandLineHandler,
     Ci.nsIMarionette,
   ]),
+  // eslint-disable-next-line camelcase
   _xpcom_categories: [
     {category: "command-line-handler", entry: "b-marionette"},
     {category: "profile-after-change", service: true},
   ],
   helpInfo: "  --marionette       Enable remote control server.\n",
 };
 
 // Handle -marionette flag
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -2058,17 +2058,17 @@ GeckoDriver.prototype.actionChain = asyn
  * @throws {UnexpectedAlertOpenError}
  *     A modal dialog is open, blocking this operation.
  */
 GeckoDriver.prototype.multiAction = async function(cmd, resp) {
   assert.content(this.context);
   assert.window(this.getCurrentWindow());
   assert.noUserPrompt(this.dialog);
 
-  let {value, max_length} = cmd.parameters;
+  let {value, max_length} = cmd.parameters;  // eslint-disable-line camelcase
 
   this.addFrameCloseListener("multi action chain");
   await this.listener.multiAction(value, max_length);
 };
 
 /**
  * Find an element using the indicated search strategy.
  *
--- a/testing/marionette/reftest.js
+++ b/testing/marionette/reftest.js
@@ -288,16 +288,17 @@ min-width: 600px; min-height: 600px; max
       logger.debug(`Canvas pool is of length ${canvasPool.length}`);
     }
 
     let result = {status, message, extra: {}};
     if (screenshotData.length) {
       // For now the tbpl formatter only accepts one screenshot, so just
       // return the last one we took.
       let lastScreenshot = screenshotData[screenshotData.length - 1];
+      // eslint-disable-next-line camelcase
       result.extra.reftest_screenshots = lastScreenshot;
     }
 
     return result;
   }
 
   async compareUrls(win, lhsUrl, rhsUrl, relation, timeout) {
     logger.info(`Testing ${lhsUrl} ${relation} ${rhsUrl}`);