diff --git a/.eslintignore b/.eslintignore index 6a1bfa5f1a8b..7c5d28696d4d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -134,7 +134,6 @@ devtools/server/actors/stylesheets.js devtools/server/tests/browser/storage-*.html !devtools/server/tests/browser/storage-unsecured-iframe.html devtools/server/tests/browser/stylesheets-nested-iframes.html -devtools/server/tests/mochitest/** devtools/server/tests/unit/** devtools/shared/platform/content/test/test_clipboard.html devtools/shared/qrcode/tests/mochitest/test_decode.html diff --git a/devtools/server/tests/mochitest/Debugger.Source.prototype.element-2.js b/devtools/server/tests/mochitest/Debugger.Source.prototype.element-2.js index eab74692130a..7260431428dc 100644 --- a/devtools/server/tests/mochitest/Debugger.Source.prototype.element-2.js +++ b/devtools/server/tests/mochitest/Debugger.Source.prototype.element-2.js @@ -1 +1,4 @@ +"use strict"; + +// eslint-disable-next-line no-debugger debugger; diff --git a/devtools/server/tests/mochitest/Debugger.Source.prototype.element.html b/devtools/server/tests/mochitest/Debugger.Source.prototype.element.html index fcf4c6c851d5..6959ad970d1d 100644 --- a/devtools/server/tests/mochitest/Debugger.Source.prototype.element.html +++ b/devtools/server/tests/mochitest/Debugger.Source.prototype.element.html @@ -1,6 +1,14 @@
- + diff --git a/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js b/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js index 44115b373be6..0fe4157a4401 100644 --- a/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js +++ b/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js @@ -1 +1,6 @@ -function heinrichFun() { franz(); } +/* exported heinrichFun */ +"use strict"; + +function heinrichFun() { + franz(); +} diff --git a/devtools/server/tests/mochitest/animation-data.html b/devtools/server/tests/mochitest/animation-data.html index 01be59548093..79bf3706c03d 100644 --- a/devtools/server/tests/mochitest/animation-data.html +++ b/devtools/server/tests/mochitest/animation-data.html @@ -101,8 +101,10 @@ } diff --git a/devtools/server/tests/mochitest/director-helpers.js b/devtools/server/tests/mochitest/director-helpers.js index fe1f7d394a28..b650884a2853 100644 --- a/devtools/server/tests/mochitest/director-helpers.js +++ b/devtools/server/tests/mochitest/director-helpers.js @@ -1,4 +1,8 @@ -var Cu = Components.utils; +/* exported DirectorRegistryFront, DirectorManagerFront, Task, + newConnectedDebuggerClient, purgeInstalledDirectorScripts */ +"use strict"; + +const Cu = Components.utils; const {require} = Cu.import("resource://devtools/shared/Loader.jsm", {}); const {DebuggerClient} = require("devtools/shared/client/main"); const {DebuggerServer} = require("devtools/server/main"); @@ -25,12 +29,12 @@ const { Task } = require("devtools/shared/task"); **********************************/ function* newConnectedDebuggerClient(opts) { - var transport = DebuggerServer.connectPipe(); - var client = new DebuggerClient(transport); + let transport = DebuggerServer.connectPipe(); + let client = new DebuggerClient(transport); yield client.connect(); - var root = yield client.listTabs(); + let root = yield client.listTabs(); return { client: client, diff --git a/devtools/server/tests/mochitest/hello-actor.js b/devtools/server/tests/mochitest/hello-actor.js index 6031929381fb..abb6afc73fa8 100644 --- a/devtools/server/tests/mochitest/hello-actor.js +++ b/devtools/server/tests/mochitest/hello-actor.js @@ -1,5 +1,7 @@ /* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ +/* exported HelloActor */ +"use strict"; const protocol = require("devtools/shared/protocol"); diff --git a/devtools/server/tests/mochitest/inspector-eyedropper.html b/devtools/server/tests/mochitest/inspector-eyedropper.html index ded9f392de2f..39705edcc220 100644 --- a/devtools/server/tests/mochitest/inspector-eyedropper.html +++ b/devtools/server/tests/mochitest/inspector-eyedropper.html @@ -1,18 +1,20 @@ - - - -