Bug 1256830 - Fix ESLint issues in devtools/client/webconsole/test/browser_webconsole_bug_587617_output_copy.js. r=bgrins
authormoby <mvonbriesen@mozilla.com>
Thu, 26 May 2016 15:02:00 -0400
changeset 299121 db599457058b23ffdc6c29c17881e09772020d41
parent 299120 91a78f4ce6fa709366cc84ee43e0c21a788042fa
child 299122 48f6dbdcd9d2d642b1a47ef77ca73694ff33c874
push id30290
push userryanvm@gmail.com
push dateFri, 27 May 2016 01:44:20 +0000
treeherdermozilla-central@34ac60e5b29c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1256830
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 1256830 - Fix ESLint issues in devtools/client/webconsole/test/browser_webconsole_bug_587617_output_copy.js. r=bgrins
devtools/client/webconsole/test/browser_webconsole_bug_587617_output_copy.js
--- a/devtools/client/webconsole/test/browser_webconsole_bug_587617_output_copy.js
+++ b/devtools/client/webconsole/test/browser_webconsole_bug_587617_output_copy.js
@@ -1,12 +1,13 @@
 /* -*- 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/ */
+/* globals goUpdateCommand goDoCommand */
 
 "use strict";
 
 const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
                  "test/test-console.html";
 
 var HUD, outputNode;
 
@@ -15,31 +16,32 @@ add_task(function* () {
 
   let hud = yield openConsole();
   yield consoleOpened(hud);
   yield testContextMenuCopy();
 
   HUD = outputNode = null;
 });
 
-function consoleOpened(aHud) {
-  HUD = aHud;
+function consoleOpened(hud) {
+  HUD = hud;
 
   let deferred = promise.defer();
 
   // See bugs 574036, 586386 and 587617.
   outputNode = HUD.outputNode;
 
   HUD.jsterm.clearOutput();
 
   let controller = top.document.commandDispatcher
                                .getControllerForCommand("cmd_copy");
   is(controller.isCommandEnabled("cmd_copy"), false, "cmd_copy is disabled");
 
-  content.console.log("Hello world! bug587617");
+  ContentTask.spawn(gBrowser.selectedBrowser, null,
+    "() => content.console.log('Hello world! bug587617')");
 
   waitForMessages({
     webconsole: HUD,
     messages: [{
       text: "bug587617",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
     }],