summaryrefslogtreecommitdiffstats
path: root/dom/push/test/test_utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/push/test/test_utils.js')
-rw-r--r--dom/push/test/test_utils.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dom/push/test/test_utils.js b/dom/push/test/test_utils.js
index 0214318d09..5ecda2bd96 100644
--- a/dom/push/test/test_utils.js
+++ b/dom/push/test/test_utils.js
@@ -98,7 +98,7 @@ class MockWebSocket {
this._isActive = false;
}
- onHello(request) {
+ onHello() {
this.serverSendMsg(
JSON.stringify({
messageType: "hello",
@@ -131,7 +131,7 @@ class MockWebSocket {
);
}
- onAck(request) {
+ onAck() {
// Do nothing.
}
@@ -222,7 +222,7 @@ function setupPrefsAndMockSocket(mockSocket) {
}
function injectControlledFrame(target = document.body) {
- return new Promise(function (res, rej) {
+ return new Promise(function (res) {
var iframe = document.createElement("iframe");
iframe.src = "/tests/dom/push/test/frame.html";
@@ -266,7 +266,7 @@ function waitForActive(swr) {
resolve(swr);
return;
}
- sw.addEventListener("statechange", function onStateChange(evt) {
+ sw.addEventListener("statechange", function onStateChange() {
if (sw.state === "activated") {
sw.removeEventListener("statechange", onStateChange);
resolve(swr);