summaryrefslogtreecommitdiffstats
path: root/dom/url/tests
diff options
context:
space:
mode:
Diffstat (limited to 'dom/url/tests')
-rw-r--r--dom/url/tests/browser_download_after_revoke.js2
-rw-r--r--dom/url/tests/protocol_worker.js2
-rw-r--r--dom/url/tests/urlSearchParams_commons.js4
-rw-r--r--dom/url/tests/url_exceptions_worker.js2
4 files changed, 8 insertions, 2 deletions
diff --git a/dom/url/tests/browser_download_after_revoke.js b/dom/url/tests/browser_download_after_revoke.js
index be8ad96e70..f145b36281 100644
--- a/dom/url/tests/browser_download_after_revoke.js
+++ b/dom/url/tests/browser_download_after_revoke.js
@@ -43,7 +43,7 @@ async function test() {
domwindow.addEventListener("load", onModalLoad, true);
},
- onCloseWindow(aXULWindow) {},
+ onCloseWindow() {},
};
Services.wm.addListener(listener);
diff --git a/dom/url/tests/protocol_worker.js b/dom/url/tests/protocol_worker.js
index c038254a4c..81e761ee0e 100644
--- a/dom/url/tests/protocol_worker.js
+++ b/dom/url/tests/protocol_worker.js
@@ -1,3 +1,5 @@
+/* eslint-disable mozilla/no-comparison-or-assignment-inside-ok */
+
function ok(a, msg) {
postMessage({ type: "status", status: !!a, msg });
}
diff --git a/dom/url/tests/urlSearchParams_commons.js b/dom/url/tests/urlSearchParams_commons.js
index 3a1dcb2807..4a1308b94b 100644
--- a/dom/url/tests/urlSearchParams_commons.js
+++ b/dom/url/tests/urlSearchParams_commons.js
@@ -1,5 +1,9 @@
/* import-globals-from urlSearchParams_worker.js */
+// This file gets included into a worker which doesn't have any
+// assertion methods besides `ok` and `is`.
+/* eslint-disable mozilla/no-comparison-or-assignment-inside-ok */
+
function testSimpleURLSearchParams() {
var u = new URLSearchParams();
ok(u, "URLSearchParams created");
diff --git a/dom/url/tests/url_exceptions_worker.js b/dom/url/tests/url_exceptions_worker.js
index c8d8494ac9..8bbd641136 100644
--- a/dom/url/tests/url_exceptions_worker.js
+++ b/dom/url/tests/url_exceptions_worker.js
@@ -2,7 +2,7 @@ function ok(a, msg) {
postMessage({ type: "status", status: !!a, msg });
}
-onmessage = function (event) {
+onmessage = function () {
// URL.href throws
var url = new URL("http://www.example.com");
ok(url, "URL created");