Bug 1256790 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_keyboard_accessibility.js. r=jlast, a=test-only
authorMichael Kohler <mkohler@picobudget.com>
Sat, 07 May 2016 11:36:00 +0200
changeset 333111 7a10c57f0f505c60ac90b66429e01e5eb3cf90b3
parent 333110 28efb86c3f0a1352faa8dea7871c99544c393217
child 333112 35f1e2eeab310bddceae79015b536aee4037ae06
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)
reviewersjlast, test-only
bugs1256790
milestone48.0a2
Bug 1256790 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_keyboard_accessibility.js. r=jlast, a=test-only MozReview-Commit-ID: J11LwUypu2J
devtools/client/webconsole/test/browser_console_keyboard_accessibility.js
--- a/devtools/client/webconsole/test/browser_console_keyboard_accessibility.js
+++ b/devtools/client/webconsole/test/browser_console_keyboard_accessibility.js
@@ -48,17 +48,18 @@ add_task(function*() {
   EventUtils.synthesizeKey("VK_END", {});
 
   let scrollTop = hud.ui.outputWrapper.scrollTop;
   ok(scrollTop > 0 && Math.abs(scrollTop - bottom) <= 5,
      "scroll position now at bottom");
 
   info("try ctrl-l to clear output");
   executeSoon(() => {
-    let clearKey = hud.ui.window.document.querySelector("key[command=consoleCmd_clearOutput]:not([disabled])");
+    let selector = "key[command=consoleCmd_clearOutput]:not([disabled])";
+    let clearKey = hud.ui.window.document.querySelector(selector);
     synthesizeKeyFromKeyTag(clearKey);
   });
   yield hud.jsterm.once("messages-cleared");
 
   is(hud.outputNode.textContent.indexOf("foobarz1"), -1, "output cleared");
   is(hud.jsterm.inputNode.getAttribute("focused"), "true",
      "jsterm input is focused");