Bug 1256795 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_server_logging.js. r=linclark
authorale rimoldi + richard eigenmann <ale.comp_06@xox.ch>
Thu, 05 May 2016 12:17:00 -0400
changeset 296388 779aadcbc188c8c63a252dcf92d850a8f5bdd464
parent 296387 5fe67c44f537155ac01049024e1c9548ece1a012
child 296389 d7f05bf878f48b70a52c8ee5b355491766e34a52
push id76311
push usercbook@mozilla.com
push dateFri, 06 May 2016 12:26:12 +0000
treeherdermozilla-inbound@84a3e5716801 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslinclark
bugs1256795
milestone49.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 1256795 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_server_logging.js. r=linclark
devtools/client/webconsole/test/browser_console_server_logging.js
devtools/client/webconsole/test/head.js
--- a/devtools/client/webconsole/test/browser_console_server_logging.js
+++ b/devtools/client/webconsole/test/browser_console_server_logging.js
@@ -25,18 +25,17 @@ add_task(function* () {
 
   yield waitForMessages({
     webconsole: hud,
     messages: [{
       text: text,
       category: CATEGORY_SERVER,
       severity: SEVERITY_LOG,
     }],
-  })
-
+  });
   // Clean up filter
   hud.setFilterState("serverlog", false);
   yield updateServerLoggingListener(hud);
 });
 
 add_task(function* () {
   const TEST_URI = "http://example.com/browser/devtools/client/webconsole/test/test-console-server-logging-array.sjs";
 
@@ -44,30 +43,28 @@ add_task(function* () {
 
   let hud = yield openConsole();
 
   // Set logging filter and wait till it's set on the backend
   hud.setFilterState("serverlog", true);
   yield updateServerLoggingListener(hud);
 
   BrowserReloadSkipCache();
-
   // Note that the test is also checking out the (printf like)
   // formatters and encoding of UTF8 characters (see the one at the end).
-  let text = "Object { best: \"Firefox\", reckless: \"Chrome\", new_ie: \"Safari\", new_new_ie: \"Edge\" }";
-
+  let text = "Object { best: \"Firefox\", reckless: \"Chrome\", " +
+    "new_ie: \"Safari\", new_new_ie: \"Edge\" }";
   yield waitForMessages({
     webconsole: hud,
     messages: [{
       text: text,
       category: CATEGORY_SERVER,
       severity: SEVERITY_LOG,
     }],
-  })
-
+  });
   // Clean up filter
   hud.setFilterState("serverlog", false);
   yield updateServerLoggingListener(hud);
 });
 
 function updateServerLoggingListener(hud) {
   let deferred = promise.defer();
   hud.ui._updateServerLoggingListener(response => {
--- a/devtools/client/webconsole/test/head.js
+++ b/devtools/client/webconsole/test/head.js
@@ -1,13 +1,14 @@
 /* -*- 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/ */
 
+/* import-globals-from ../../framework/test/shared-head.js */
 "use strict";
 
 // shared-head.js handles imports, constants, and utility functions
 Services.scriptloader.loadSubScript("chrome://mochitests/content/browser/devtools/client/framework/test/shared-head.js", this);
 
 var {Task} = Cu.import("resource://gre/modules/Task.jsm", {});
 var {Utils: WebConsoleUtils} = require("devtools/shared/webconsole/utils");
 var {Messages} = require("devtools/client/webconsole/console-output");