summaryrefslogtreecommitdiffstats
path: root/devtools/shared/network-observer/test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /devtools/shared/network-observer/test
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/network-observer/test')
-rw-r--r--devtools/shared/network-observer/test/browser/browser_networkobserver_auth_listener.js6
-rw-r--r--devtools/shared/network-observer/test/browser/doc_network-observer-missing-service-worker.html4
-rw-r--r--devtools/shared/network-observer/test/browser/doc_network-observer.html2
-rw-r--r--devtools/shared/network-observer/test/browser/head.js2
4 files changed, 7 insertions, 7 deletions
diff --git a/devtools/shared/network-observer/test/browser/browser_networkobserver_auth_listener.js b/devtools/shared/network-observer/test/browser/browser_networkobserver_auth_listener.js
index e3492c10ad..2071029350 100644
--- a/devtools/shared/network-observer/test/browser/browser_networkobserver_auth_listener.js
+++ b/devtools/shared/network-observer/test/browser/browser_networkobserver_auth_listener.js
@@ -71,7 +71,7 @@ add_task(async function testAuthRequestWithoutListener() {
const events = [];
const networkObserver = new NetworkObserver({
ignoreChannelFunction: channel => channel.URI.spec !== AUTH_URL,
- onNetworkEvent: event => {
+ onNetworkEvent: () => {
const owner = new AuthForwardingOwner();
events.push(owner);
return owner;
@@ -115,7 +115,7 @@ add_task(async function testAuthRequestWithForwardingListener() {
const events = [];
const networkObserver = new NetworkObserver({
ignoreChannelFunction: channel => channel.URI.spec !== AUTH_URL,
- onNetworkEvent: event => {
+ onNetworkEvent: () => {
info("waitForNetworkEvents received a new event");
const owner = new AuthForwardingOwner();
events.push(owner);
@@ -167,7 +167,7 @@ add_task(async function testAuthRequestWithCancellingListener() {
const events = [];
const networkObserver = new NetworkObserver({
ignoreChannelFunction: channel => channel.URI.spec !== AUTH_URL,
- onNetworkEvent: event => {
+ onNetworkEvent: () => {
const owner = new AuthCancellingOwner();
events.push(owner);
return owner;
diff --git a/devtools/shared/network-observer/test/browser/doc_network-observer-missing-service-worker.html b/devtools/shared/network-observer/test/browser/doc_network-observer-missing-service-worker.html
index 396e51677c..791190a1b3 100644
--- a/devtools/shared/network-observer/test/browser/doc_network-observer-missing-service-worker.html
+++ b/devtools/shared/network-observer/test/browser/doc_network-observer-missing-service-worker.html
@@ -21,9 +21,9 @@
// NOTE: This service worker file does not exist which enables testing
// that a 404 requests is received.
return sw.register("serviceworker-missing.js")
- .then(registration => {
+ .then(() => {
throw new Error("The Service Worker file should not exist");
- }).catch(err => {
+ }).catch(() => {
console.log("Registration failed as expected");
});
}
diff --git a/devtools/shared/network-observer/test/browser/doc_network-observer.html b/devtools/shared/network-observer/test/browser/doc_network-observer.html
index 2ca400e0ae..78d751dfac 100644
--- a/devtools/shared/network-observer/test/browser/doc_network-observer.html
+++ b/devtools/shared/network-observer/test/browser/doc_network-observer.html
@@ -36,7 +36,7 @@
}, { once: true });
}
});
- }).catch(err => {
+ }).catch(() => {
console.error("Registration failed");
});
}
diff --git a/devtools/shared/network-observer/test/browser/head.js b/devtools/shared/network-observer/test/browser/head.js
index deb7becff6..0c26e248aa 100644
--- a/devtools/shared/network-observer/test/browser/head.js
+++ b/devtools/shared/network-observer/test/browser/head.js
@@ -84,7 +84,7 @@ class NetworkEventOwner {
* Create a simple network event owner, with mock implementations of all
* the expected APIs for a NetworkEventOwner.
*/
-function createNetworkEventOwner(event) {
+function createNetworkEventOwner() {
return new NetworkEventOwner();
}