Bug 1256795 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_server_logging.js. r=linclark, a=test-only
authorale rimoldi + richard eigenmann <ale.comp_06@xox.ch>
Thu, 05 May 2016 12:17:00 -0400
changeset 333105 c443cfd5fb7c900507a93ff67b5a35370db17b05
parent 333104 9e979bdaa8f5382d8de8143691a51e851bc880df
child 333106 d8a1382a6c0105eb0b38bc546bd69ebf8c3dc59f
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslinclark, test-only
bugs1256795
milestone48.0a2
Bug 1256795 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_server_logging.js. r=linclark, a=test-only
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");