diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /remote/shared/test/xpcshell/test_Sync.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-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 'remote/shared/test/xpcshell/test_Sync.js')
-rw-r--r-- | remote/shared/test/xpcshell/test_Sync.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/remote/shared/test/xpcshell/test_Sync.js b/remote/shared/test/xpcshell/test_Sync.js index de4a4d30fe..a85c47adc2 100644 --- a/remote/shared/test/xpcshell/test_Sync.js +++ b/remote/shared/test/xpcshell/test_Sync.js @@ -50,14 +50,14 @@ class MockElement { } } - dispatchEvent(event) { + dispatchEvent() { if (this.wantUntrusted) { this.untrusted = true; } this.click(); } - removeEventListener(name, func) { + removeEventListener() { this.capture = false; this.eventName = null; this.func = null; @@ -213,12 +213,12 @@ add_task(async function test_EventPromise_checkFnCallback() { { checkFn: null, expected_count: 0 }, { checkFn: undefined, expected_count: 0 }, { - checkFn: event => { + checkFn: () => { throw new Error("foo"); }, expected_count: 0, }, - { checkFn: event => count++ > 0, expected_count: 2 }, + { checkFn: () => count++ > 0, expected_count: 2 }, ]; for (const { checkFn, expected_count } of data) { @@ -417,7 +417,7 @@ add_task(async function test_PollPromise_resolve() { const timeout = 100; await new PollPromise( - (resolve, reject) => { + resolve => { resolve(); }, { timeout, errorMessage } |