Bug 1170804 - Add non-final eslintrc for tests/. r=margaret
authorMichael Comella <michael.l.comella@gmail.com>
Thu, 25 Jun 2015 10:40:26 -0700
changeset 281126 c8b9161a17df96145187ba8ab0a13cd56606612e
parent 281125 a348a4336c715498e4e9568a8e532741d5811039
child 281127 abc988d2a1fd4d1f20c20813f0b1efe4df50cb38
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1170804
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1170804 - Add non-final eslintrc for tests/. r=margaret There are still some failures but it's a start.
mobile/android/tests/.eslintrc
mobile/android/tests/browser/robocop/testAndroidLog.js
mobile/android/tests/browser/robocop/testReadingListCache.js
mobile/android/tests/browser/robocop/testSimpleDiscovery.js
mobile/android/tests/browser/robocop/testVideoDiscovery.js
new file mode 100644
--- /dev/null
+++ b/mobile/android/tests/.eslintrc
@@ -0,0 +1,18 @@
+globals:
+    # TODO: Verify that these are correct.
+    Point: false
+    SpecialPowers: false
+    XPCNativeWrapper: false
+    add_task: false
+    add_test: false
+    do_check_eq: false
+    do_check_false: false
+    do_check_neq: false
+    do_check_true: false
+    do_print: false
+    do_register_cleanup: false
+    do_report_result: false
+    do_test_finished: false
+    do_test_pending: false
+    do_throw: false
+    run_next_test: false
--- a/mobile/android/tests/browser/robocop/testAndroidLog.js
+++ b/mobile/android/tests/browser/robocop/testAndroidLog.js
@@ -1,13 +1,15 @@
 // -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
 /* 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/. */
 
+/*globals AndroidLog */
+
 const TAG = "AndroidLogTest";
 
 const VERBOSE_MESSAGE = "This is a verbose message.";
 const DEBUG_MESSAGE = "This is a debug message.";
 const INFO_MESSAGE = "This is an info message.";
 const WARNING_MESSAGE = "This is a warning message.";
 const ERROR_MESSAGE = "This is an error message.";
 
--- a/mobile/android/tests/browser/robocop/testReadingListCache.js
+++ b/mobile/android/tests/browser/robocop/testReadingListCache.js
@@ -1,13 +1,15 @@
 // -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
 /* 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/. */
 
+/*globals ReaderMode */
+
 const { utils: Cu } = Components;
 
 Cu.import("resource://gre/modules/ReaderMode.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/Task.jsm");
 
 let Reader = Services.wm.getMostRecentWindow("navigator:browser").Reader;
 
--- a/mobile/android/tests/browser/robocop/testSimpleDiscovery.js
+++ b/mobile/android/tests/browser/robocop/testSimpleDiscovery.js
@@ -1,14 +1,16 @@
 // -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
 /* 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";
 
+/*globals SimpleServiceDiscovery */
+
 const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
 
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/SimpleServiceDiscovery.jsm");
 
 function discovery_observer(subject, topic, data) {
   do_print("Observer: " + data);
 
--- a/mobile/android/tests/browser/robocop/testVideoDiscovery.js
+++ b/mobile/android/tests/browser/robocop/testVideoDiscovery.js
@@ -1,15 +1,17 @@
 // -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
 /* 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";
 
+/*globals SimpleServiceDiscovery */
+
 const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
 
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/SimpleServiceDiscovery.jsm");
 
 function ok(passed, text) {
   do_report_result(passed, text, Components.stack.caller, false);
 }