Bug 1256800 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_highlighter.js. r=linclark
authorMichael Kohler <mkohler@picobudget.com>
Tue, 03 May 2016 16:04:00 -0400
changeset 296368 4200834d50111d7e71257057a9c916e6d1c125e1
parent 296367 9ccf0528e3c1b75d7ef46eb729dd29346af8ca73
child 296369 7740286bd255b48e52cbf322ec3249741422b1d1
push id76311
push usercbook@mozilla.com
push dateFri, 06 May 2016 12:26:12 +0000
treeherdermozilla-inbound@84a3e5716801 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslinclark
bugs1256800
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 1256800 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_highlighter.js. r=linclark
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];