Bug 1439153 - try to fix ESlint failures, CLOSED TREE, r=bustage
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Sat, 14 Jul 2018 06:13:08 +0300
changeset 426631 2bc6298fa815fd289d272f7081e586f9279db08e
parent 426630 62cb6ad78b9b66055c325e43924dc6b5b9818d36
child 426632 34d98c2d9fc3d48a1939c623571bef2f95abff79
push id105275
push useropettay@mozilla.com
push dateSat, 14 Jul 2018 03:13:59 +0000
treeherdermozilla-inbound@2bc6298fa815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1439153
milestone63.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 1439153 - try to fix ESlint failures, CLOSED TREE, r=bustage
toolkit/components/extensions/test/xpcshell/data/file_shadowdom.html
toolkit/components/extensions/test/xpcshell/test_ext_shadowdom.js
--- a/toolkit/components/extensions/test/xpcshell/data/file_shadowdom.html
+++ b/toolkit/components/extensions/test/xpcshell/data/file_shadowdom.html
@@ -1,12 +1,13 @@
 <!DOCTYPE HTML>
 <html>
 <head>
 <meta charset="utf-8">
 </head>
 <body>
 <div id="host">host</div>
 <script>
+  "use strict";
   document.getElementById("host").attachShadow({mode: "closed"});
 </script>
 </body>
 </html>
--- a/toolkit/components/extensions/test/xpcshell/test_ext_shadowdom.js
+++ b/toolkit/components/extensions/test/xpcshell/test_ext_shadowdom.js
@@ -9,17 +9,17 @@ ExtensionTestUtils.mockAppInfo();
 
 const server = createHttpServer();
 server.registerDirectory("/data/", do_get_file("data"));
 
 const BASE_URL = `http://localhost:${server.identity.primaryPort}/data`;
 
 add_task(async function test_contentscript_shadowDOM() {
   const PREFS = {
-    "dom.webcomponents.shadowdom.enabled": true
+    "dom.webcomponents.shadowdom.enabled": true,
   };
 
   // Set prefs to our initial values.
   for (let pref in PREFS) {
     Preferences.set(pref, PREFS[pref]);
   }
 
   registerCleanupFunction(() => {
@@ -30,19 +30,19 @@ add_task(async function test_contentscri
   });
 
   function backgroundScript() {
     browser.test.assertTrue("openOrClosedShadowRoot" in document.documentElement,
                             "Should have openOrClosedShadowRoot in Element in background script.");
   }
 
   function contentScript() {
-    var host = document.getElementById("host");
+    let host = document.getElementById("host");
     browser.test.assertTrue("openOrClosedShadowRoot" in host, "Should have openOrClosedShadowRoot in Element.");
-    var shadowRoot = host.openOrClosedShadowRoot;
+    let shadowRoot = host.openOrClosedShadowRoot;
     browser.test.assertEq(shadowRoot.mode, "closed", "Should have closed ShadowRoot.");
     browser.test.sendMessage("contentScript");
   }
 
   let extension = ExtensionTestUtils.loadExtension({
     manifest: {
       content_scripts: [{
         "matches": ["http://*/*/file_shadowdom.html"],