Bug 1376128 - Expose unrecognised eslint globals; r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Wed, 28 Jun 2017 11:04:14 -0700
changeset 602387 8a92a335387f47b26ac93d2bca020eb1bd60078c
parent 602386 960ce8f85ee96487f0e1dd301c3c113f3d49664d
child 602388 8b38cf86cf87be43d0f18b78f987c248f2b6ee40
push id66419
push userbmo:ato@sny.no
push dateThu, 29 Jun 2017 23:42:10 +0000
reviewersautomatedtester
bugs1376128
milestone56.0a1
Bug 1376128 - Expose unrecognised eslint globals; r?automatedtester In particular, XPCNativeWrapper should probably be made available by default. MozReview-Commit-ID: E1oYFyApbLi
testing/marionette/browser.js
testing/marionette/driver.js
testing/marionette/element.js
testing/marionette/event.js
testing/marionette/listener.js
testing/marionette/prefs/marionette.js
--- a/testing/marionette/browser.js
+++ b/testing/marionette/browser.js
@@ -1,13 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
 "use strict";
+/* global frame */
 
 const {utils: Cu} = Components;
 
 Cu.import("chrome://marionette/content/element.js");
 const {
   NoSuchWindowError,
   UnsupportedOperationError,
 } = Cu.import("chrome://marionette/content/error.js", {});
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -1,13 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
 "use strict";
+/* global XPCNativeWrapper */
 
 var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
 
 var loader = Cc["@mozilla.org/moz/jssubscript-loader;1"]
     .getService(Ci.mozIJSSubScriptLoader);
 
 Cu.import("resource://gre/modules/Log.jsm");
 Cu.import("resource://gre/modules/Preferences.jsm");
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -1,13 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
 "use strict";
+/* global XPCNativeWrapper */
 
 const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
 
 Cu.import("resource://gre/modules/Log.jsm");
 
 Cu.import("chrome://marionette/content/assert.js");
 Cu.import("chrome://marionette/content/atom.js");
 const {
--- a/testing/marionette/event.js
+++ b/testing/marionette/event.js
@@ -1,15 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
 // Provides functionality for creating and sending DOM events.
 
 "use strict";
+/* global content, is */
 
 const {interfaces: Ci, utils: Cu, classes: Cc} = Components;
 
 Cu.import("resource://gre/modules/Log.jsm");
 const logger = Log.repository.getLogger("Marionette");
 
 Cu.import("chrome://marionette/content/element.js");
 const {ElementNotInteractableError} =
--- a/testing/marionette/listener.js
+++ b/testing/marionette/listener.js
@@ -1,12 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
+/* eslint-env mozilla/frame-script */
+/* global XPCNativeWrapper */
+
 "use strict";
 
 var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
 
 var uuidGen = Cc["@mozilla.org/uuid-generator;1"]
     .getService(Ci.nsIUUIDGenerator);
 
 var loader = Cc["@mozilla.org/moz/jssubscript-loader;1"]
--- a/testing/marionette/prefs/marionette.js
+++ b/testing/marionette/prefs/marionette.js
@@ -1,12 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
+/* global pref */
+
 // Marionette is the remote protocol that lets OOP programs communicate
 // with, instrument, and control Gecko.
 //
 // It is included in Firefox, but not enabled by default unless the
 // -marionette flag is passed.
 
 // Port to start Marionette server on.
 pref("marionette.port", 2828);