Bug 1256800 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_highlighter.js. r=linclark, a=test-only
authorMichael Kohler <mkohler@picobudget.com>
Tue, 03 May 2016 16:04:00 -0400
changeset 333106 d8a1382a6c0105eb0b38bc546bd69ebf8c3dc59f
parent 333105 c443cfd5fb7c900507a93ff67b5a35370db17b05
child 333107 d81a217b8759fa910321a7e1fddb0adf55615853
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
bugs1256800
milestone48.0a2
Bug 1256800 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_highlighter.js. r=linclark, a=test-only
devtools/client/webconsole/test/browser_console_variables_view_highlighter.js
--- a/devtools/client/webconsole/test/browser_console_variables_view_highlighter.js
+++ b/devtools/client/webconsole/test/browser_console_variables_view_highlighter.js
@@ -28,29 +28,29 @@ function consoleOpened(hud) {
   gJSTerm.execute("document.querySelectorAll('p')").then(onQSAexecuted);
 }
 
 function onQSAexecuted(msg) {
   ok(msg, "output message found");
   let anchor = msg.querySelector("a");
   ok(anchor, "object link found");
 
-  gJSTerm.once("variablesview-fetched", onNodeListVviewFetched);
+  gJSTerm.once("variablesview-fetched", onNodeListViewFetched);
 
   executeSoon(() =>
     EventUtils.synthesizeMouse(anchor, 2, 2, {}, gWebConsole.iframeWindow)
   );
 }
 
-function onNodeListVviewFetched(aEvent, aVar) {
-  gVariablesView = aVar._variablesView;
+function onNodeListViewFetched(event, variable) {
+  gVariablesView = variable._variablesView;
   ok(gVariablesView, "variables view object");
 
   // Transform the vview into an array we can filter properties from
-  let props = [...aVar].map(([id, prop]) => [id, prop]);
+  let props = [...variable].map(([id, prop]) => [id, prop]);
 
   // These properties are the DOM nodes ones
   props = props.filter(v => v[0].match(/[0-9]+/));
 
   function hoverOverDomNodeVariableAndAssertHighlighter(index) {
     if (props[index]) {
       let prop = props[index][1];