summaryrefslogtreecommitdiffstats
path: root/dom/tests/unit
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /dom/tests/unit
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/tests/unit')
-rw-r--r--dom/tests/unit/test_Fetch.js6
-rw-r--r--dom/tests/unit/test_PromiseDebugging.js2
-rw-r--r--dom/tests/unit/test_geolocation_monitor.js2
-rw-r--r--dom/tests/unit/test_geolocation_provider.js4
4 files changed, 7 insertions, 7 deletions
diff --git a/dom/tests/unit/test_Fetch.js b/dom/tests/unit/test_Fetch.js
index 768cf671dd..1449a23854 100644
--- a/dom/tests/unit/test_Fetch.js
+++ b/dom/tests/unit/test_Fetch.js
@@ -216,7 +216,7 @@ add_test(function test_getTestFailedConnect() {
do_test_pending();
// try a server that's not there
fetch("http://localhost:4/should/fail")
- .then(response => {
+ .then(() => {
do_throw("Request should not succeed");
})
.catch(err => {
@@ -230,7 +230,7 @@ add_test(function test_mozError() {
do_test_pending();
// try a server that's not there
fetch("http://localhost:4/should/fail", { mozErrors: true })
- .then(response => {
+ .then(() => {
do_throw("Request should not succeed");
})
.catch(err => {
@@ -245,7 +245,7 @@ add_test(function test_request_mozError() {
// try a server that's not there
const r = new Request("http://localhost:4/should/fail", { mozErrors: true });
fetch(r)
- .then(response => {
+ .then(() => {
do_throw("Request should not succeed");
})
.catch(err => {
diff --git a/dom/tests/unit/test_PromiseDebugging.js b/dom/tests/unit/test_PromiseDebugging.js
index 2262d60d61..6148b65c75 100644
--- a/dom/tests/unit/test_PromiseDebugging.js
+++ b/dom/tests/unit/test_PromiseDebugging.js
@@ -2,7 +2,7 @@ function run_test() {
// Hack around Promise.jsm being stuck on my global
Assert.equal(false, PromiseDebugging === undefined);
var res;
- var p = new Promise(function (resolve, reject) {
+ var p = new Promise(function (resolve) {
res = resolve;
});
var state = PromiseDebugging.getState(p);
diff --git a/dom/tests/unit/test_geolocation_monitor.js b/dom/tests/unit/test_geolocation_monitor.js
index f0fc1ad74b..7b47463882 100644
--- a/dom/tests/unit/test_geolocation_monitor.js
+++ b/dom/tests/unit/test_geolocation_monitor.js
@@ -56,7 +56,7 @@ function watchPosition() {
let observer = {
QueryInterface: ChromeUtils.generateQI(["nsIObserver"]),
- observe(subject, topic, data) {
+ observe(subject, topic) {
Assert.equal(topic, "geolocation-position-events");
observer._countEvents++;
observer._lastData = toJSON(subject);
diff --git a/dom/tests/unit/test_geolocation_provider.js b/dom/tests/unit/test_geolocation_provider.js
index 8c58cd39f5..e08887bfce 100644
--- a/dom/tests/unit/test_geolocation_provider.js
+++ b/dom/tests/unit/test_geolocation_provider.js
@@ -12,10 +12,10 @@ function terminate(succ) {
geolocation.clearWatch(watchID);
}
-function successCallback(pos) {
+function successCallback() {
terminate(true);
}
-function errorCallback(pos) {
+function errorCallback() {
terminate(false);
}