Bug 1256781 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_click_focus.js. r=linclark, a=test-only
authorMichael Kohler <mkohler@picobudget.com>
Tue, 03 May 2016 16:03:00 -0400
changeset 333102 17a229d8b88843924588d2ebaab854eb4ed73de1
parent 333101 1e396b3ea165268d5a165ba0e0d0071914082e4c
child 333103 250fe675e32f353b92ef36e19e3b5286bbc868db
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
bugs1256781
milestone48.0a2
Bug 1256781 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_click_focus.js. r=linclark, a=test-only
devtools/client/webconsole/test/browser_console_click_focus.js
--- a/devtools/client/webconsole/test/browser_console_click_focus.js
+++ b/devtools/client/webconsole/test/browser_console_click_focus.js
@@ -5,17 +5,17 @@
 
 // Tests that the input field is focused when the console is opened.
 
 "use strict";
 
 const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
                  "test/test-console.html";
 
-add_task(function*() {
+add_task(function* () {
   yield loadTab(TEST_URI);
   let hud = yield openConsole();
 
   let [result] = yield waitForMessages({
     webconsole: hud,
     messages: [{
       text: "Dolske Digs Bacon",
       category: CATEGORY_WEBDEV,
@@ -32,22 +32,23 @@ add_task(function*() {
 
   yield waitForBlurredInput(inputNode);
 
   EventUtils.sendMouseEvent({type: "click"}, hud.outputNode);
   ok(inputNode.getAttribute("focused"), "input node is focused, second time");
 
   yield waitForBlurredInput(inputNode);
 
-  info("Setting a text selection and making sure a click does not re-focus")
+  info("Setting a text selection and making sure a click does not re-focus");
   let selection = hud.iframeWindow.getSelection();
   selection.selectAllChildren(outputItem);
 
   EventUtils.sendMouseEvent({type: "click"}, hud.outputNode);
-  ok(!inputNode.getAttribute("focused"), "input node is not focused after drag");
+  ok(!inputNode.getAttribute("focused"),
+    "input node is not focused after drag");
 });
 
 function waitForBlurredInput(inputNode) {
   return new Promise(resolve => {
     let lostFocus = () => {
       inputNode.removeEventListener("blur", lostFocus);
       ok(!inputNode.getAttribute("focused"), "input node is not focused");
       resolve();