Bug 1256941 - Fix ESLint issues in devtools/client/webconsole/test/test-file-location.js;r=bgrins
authorkatecastellano <katika2987@gmail.com>
Sat, 29 Oct 2016 11:12:50 +0200
changeset 347423 d643bbe83354841710fcc82e150d3c77e7759b4c
parent 347422 40e351ced11b25aa0bdb8bd572e6e68ba1609c18
child 347424 0bf3ab8a2a94a1d1b8299e1e9395f0361b1b7dba
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1256941
milestone52.0a1
Bug 1256941 - Fix ESLint issues in devtools/client/webconsole/test/test-file-location.js;r=bgrins MozReview-Commit-ID: VOMcoAjl5y
devtools/client/webconsole/test/browser_webconsole_bug_646025_console_file_location.js
devtools/client/webconsole/test/test-file-location.js
--- a/devtools/client/webconsole/test/browser_webconsole_bug_646025_console_file_location.js
+++ b/devtools/client/webconsole/test/browser_webconsole_bug_646025_console_file_location.js
@@ -22,36 +22,36 @@ add_task(function* () {
   BrowserTestUtils.loadURI(gBrowser.selectedBrowser, TEST_URI2);
 
   yield waitForMessages({
     webconsole: hud,
     messages: [{
       text: "message for level log",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
-      source: { url: "test-file-location.js", line: 6 },
+      source: { url: "test-file-location.js", line: 8 },
     },
     {
       text: "message for level info",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_INFO,
-      source: { url: "test-file-location.js", line: 7 },
+      source: { url: "test-file-location.js", line: 9 },
     },
     {
       text: "message for level warn",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_WARNING,
-      source: { url: "test-file-location.js", line: 8 },
+      source: { url: "test-file-location.js", line: 10 },
     },
     {
       text: "message for level error",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_ERROR,
-      source: { url: "test-file-location.js", line: 9 },
+      source: { url: "test-file-location.js", line: 11 },
     },
     {
       text: "message for level debug",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
-      source: { url: "test-file-location.js", line: 10 },
+      source: { url: "test-file-location.js", line: 12 },
     }],
   });
 });
--- a/devtools/client/webconsole/test/test-file-location.js
+++ b/devtools/client/webconsole/test/test-file-location.js
@@ -1,10 +1,12 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
 /* vim: set ft=javascript ts=2 et sw=2 tw=80: */
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
+"use strict";
+
 console.log("message for level log");
 console.info("message for level info");
 console.warn("message for level warn");
 console.error("message for level error");
 console.debug("message for level debug");