Bug 1256780 - Fix ESLint issues in devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js. r=bgrins, a=test-only
authorJaideep Bhoosreddy <jaideepb@buffalo.edu>
Mon, 23 May 2016 16:28:00 +0200
changeset 333117 dcbb232b05bf34dd682837bb28ce357c96ccc4cd
parent 333116 e7f195b02a598175c9f19043bafd88187dcf70de
child 333118 073157ad3251a96b8b6a8df68abf193c50dc536d
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)
reviewersbgrins, test-only
bugs1256780
milestone48.0a2
Bug 1256780 - Fix ESLint issues in devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js. r=bgrins, a=test-only MozReview-Commit-ID: BqcfZi9Y26c
devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js
--- a/devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js
+++ b/devtools/client/webconsole/test/browser_console_addonsdk_loader_exception.js
@@ -52,39 +52,41 @@ function test() {
         severity: SEVERITY_ERROR,
       }],
     });
 
     fixToolbox();
 
     let msg = [...result.matched][0];
     ok(msg, "message element found");
-    let locationNode = msg.querySelector(".message > .message-location > .frame-link");
+    let locationNode = msg
+      .querySelector(".message > .message-location > .frame-link");
     ok(locationNode, "message location element found");
 
     let url = locationNode.getAttribute("data-url");
     info("location node url: " + url);
     ok(url.indexOf("resource://") === 0, "error comes from a subscript");
 
     let viewSource = browserconsole.viewSource;
     let URL = null;
     let clickPromise = promise.defer();
-    browserconsole.viewSourceInDebugger = (aURL) => {
-      info("browserconsole.viewSourceInDebugger() was invoked: " + aURL);
-      URL = aURL;
+    browserconsole.viewSourceInDebugger = (sourceURL) => {
+      info("browserconsole.viewSourceInDebugger() was invoked: " + sourceURL);
+      URL = sourceURL;
       clickPromise.resolve(null);
     };
 
     msg.scrollIntoView();
     EventUtils.synthesizeMouse(locationNode, 2, 2, {},
                                browserconsole.iframeWindow);
 
     info("wait for click on locationNode");
     yield clickPromise.promise;
 
     info("view-source url: " + URL);
     ok(URL, "we have some source URL after the click");
-    isnot(URL.indexOf("toolbox.js"), -1, "we have the expected view source URL");
+    isnot(URL.indexOf("toolbox.js"), -1,
+      "we have the expected view source URL");
     is(URL.indexOf("->"), -1, "no -> in the URL given to view-source");
 
     browserconsole.viewSourceInDebugger = viewSource;
   }
 }