summaryrefslogtreecommitdiffstats
path: root/dom/push/test/xpcshell/test_quota_with_notification.js
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 /dom/push/test/xpcshell/test_quota_with_notification.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/push/test/xpcshell/test_quota_with_notification.js')
-rw-r--r--dom/push/test/xpcshell/test_quota_with_notification.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/push/test/xpcshell/test_quota_with_notification.js b/dom/push/test/xpcshell/test_quota_with_notification.js
index d2e6d7cae8..015033c505 100644
--- a/dom/push/test/xpcshell/test_quota_with_notification.js
+++ b/dom/push/test/xpcshell/test_quota_with_notification.js
@@ -50,7 +50,7 @@ add_task(async function test_expiration_origin_threshold() {
let updates = 0;
let notifyPromise = promiseObserverNotification(
PushServiceComponent.pushTopic,
- (subject, data) => {
+ () => {
updates++;
return updates == numMessages;
}
@@ -59,7 +59,7 @@ add_task(async function test_expiration_origin_threshold() {
let modifications = 0;
let modifiedPromise = promiseObserverNotification(
PushServiceComponent.subscriptionModifiedTopic,
- (subject, data) => {
+ () => {
// Each subscription should be modified twice: once to update the message
// count and last push time, and the second time to update the quota.
modifications++;
@@ -67,7 +67,7 @@ add_task(async function test_expiration_origin_threshold() {
}
);
- let updateQuotaPromise = new Promise((resolve, reject) => {
+ let updateQuotaPromise = new Promise(resolve => {
let quotaUpdateCount = 0;
PushService._updateQuotaTestCallback = function () {
quotaUpdateCount++;
@@ -82,7 +82,7 @@ add_task(async function test_expiration_origin_threshold() {
db,
makeWebSocket(uri) {
return new MockWebSocket(uri, {
- onHello(request) {
+ onHello() {
this.serverSendMsg(
JSON.stringify({
messageType: "hello",
@@ -107,12 +107,12 @@ add_task(async function test_expiration_origin_threshold() {
);
}
},
- onUnregister(request) {
+ onUnregister() {
ok(false, "Channel should not be unregistered.");
},
// We expect to receive acks, but don't care about their
// contents.
- onACK(request) {},
+ onACK() {},
});
},
});