Bug 1256796 - "[ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_dom_nodes.js". r=lclark
authorVangelis Katsikaros <vkatsikaros@gmail.com>
Thu, 29 Sep 2016 02:37:00 +0200
changeset 315830 67993d2f24d25612149b50f1c0a4dc17a84eb641
parent 315829 66a5416f87a211d21af7c11006a389019428283e
child 315831 19a1bd113a836e589c65acad8e677e0e0ed36ec1
push id30757
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:02:43 +0000
treeherdermozilla-central@5ffed033557e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslclark
bugs1256796
milestone52.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 1256796 - "[ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_console_variables_view_dom_nodes.js". r=lclark
.eslintignore
devtools/client/webconsole/test/browser_console_variables_view_dom_nodes.js
--- a/.eslintignore
+++ b/.eslintignore
@@ -97,17 +97,17 @@ devtools/client/shared/webgl-utils.js
 devtools/client/shared/developer-toolbar.js
 devtools/client/shared/components/test/**
 devtools/client/shared/redux/middleware/test/**
 devtools/client/shared/test/**
 !devtools/client/shared/test/test-actor-registry.js
 devtools/client/shared/widgets/*.jsm
 devtools/client/sourceeditor/test/*.js
 devtools/client/webaudioeditor/**
-devtools/client/webconsole/**
+#devtools/client/webconsole/**
 !devtools/client/webconsole/panel.js
 !devtools/client/webconsole/jsterm.js
 !devtools/client/webconsole/console-commands.js
 devtools/client/webide/**
 !devtools/client/webide/components/webideCli.js
 devtools/server/*.js
 devtools/server/*.jsm
 !devtools/server/child.js
--- a/devtools/client/webconsole/test/browser_console_variables_view_dom_nodes.js
+++ b/devtools/client/webconsole/test/browser_console_variables_view_dom_nodes.js
@@ -3,54 +3,57 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 // Test that ensures DOM nodes are rendered correctly in VariablesView.
 
 "use strict";
 
 function test() {
-  const TEST_URI = 'data:text/html;charset=utf-8,                           \
-                    <html>                                                  \
-                      <head>                                                \
-                        <title>Test for DOM nodes in variables view</title> \
-                      </head>                                               \
-                      <body>                                                \
-                        <div></div>                                         \
-                        <div id="testID"></div>                             \
-                        <div class="single-class"></div>                    \
-                        <div class="multiple-classes another-class"></div>  \
-                        <div class="class-and-id" id="class-and-id"></div>  \
-                        <div class="multiple-classes-and-id another-class"  \
-                             id="multiple-classes-and-id"></div>            \
-                        <div class="   whitespace-start"></div>             \
-                        <div class="whitespace-end     "></div>             \
-                        <div class="multiple    spaces"></div>              \
-                      </body>                                               \
-                    </html>';
+  const TEST_URI = `
+    data:text/html;charset=utf-8,
+    <html>
+      <head>
+        <title>Test for DOM nodes in variables view</title>
+      </head>
+      <body>
+        <div></div>
+        <div id="testID"></div>
+        <div class="single-class"></div>
+        <div class="multiple-classes another-class"></div>
+        <div class="class-and-id" id="class-and-id"></div>
+        <div class="multiple-classes-and-id another-class"
+          id="multiple-classes-and-id"></div>
+        <div class="   whitespace-start"></div>
+        <div class="whitespace-end     "></div>
+        <div class="multiple    spaces"></div>
+      </body>
+    </html>
+`;
 
   Task.spawn(runner).then(finishTest);
 
   function* runner() {
     const {tab} = yield loadTab(TEST_URI);
     const hud = yield openConsole(tab);
     const jsterm = hud.jsterm;
 
     let deferred = promise.defer();
-    jsterm.once("variablesview-fetched", (_, aVar) => deferred.resolve(aVar));
+    jsterm.once("variablesview-fetched", (_, val) => deferred.resolve(val));
     jsterm.execute("inspect(document.querySelectorAll('div'))");
 
     let variableScope = yield deferred.promise;
     ok(variableScope, "Variables view opened");
 
     yield findVariableViewProperties(variableScope, [
       { name: "0", value: "<div>"},
       { name: "1", value: "<div#testID>"},
       { name: "2", value: "<div.single-class>"},
       { name: "3", value: "<div.multiple-classes.another-class>"},
       { name: "4", value: "<div#class-and-id.class-and-id>"},
-      { name: "5", value: "<div#multiple-classes-and-id.multiple-classes-and-id.another-class>"},
+      { name: "5", value: "<div#multiple-classes-and-id." +
+                          "multiple-classes-and-id.another-class>"},
       { name: "6", value: "<div.whitespace-start>"},
       { name: "7", value: "<div.whitespace-end>"},
       { name: "8", value: "<div.multiple.spaces>"},
     ], { webconsole: hud});
   }
 }