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 /devtools/shared/protocol/tests/xpcshell | |
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 'devtools/shared/protocol/tests/xpcshell')
3 files changed, 8 insertions, 8 deletions
diff --git a/devtools/shared/protocol/tests/xpcshell/test_protocol_async.js b/devtools/shared/protocol/tests/xpcshell/test_protocol_async.js index dd7196710b..ffe60db8fa 100644 --- a/devtools/shared/protocol/tests/xpcshell/test_protocol_async.js +++ b/devtools/shared/protocol/tests/xpcshell/test_protocol_async.js @@ -138,7 +138,7 @@ add_task(async function () { () => { Assert.ok(false, "simpleThrow shouldn't succeed!"); }, - error => { + () => { // Check right return order Assert.equal(sequence++, 3); } @@ -150,7 +150,7 @@ add_task(async function () { () => { Assert.ok(false, "promiseThrow shouldn't succeed!"); }, - error => { + () => { // Check right return order Assert.equal(sequence++, 4); Assert.ok(true, "simple throw should throw"); diff --git a/devtools/shared/protocol/tests/xpcshell/test_protocol_children.js b/devtools/shared/protocol/tests/xpcshell/test_protocol_children.js index 728e58c6b9..7e72f4f91c 100644 --- a/devtools/shared/protocol/tests/xpcshell/test_protocol_children.js +++ b/devtools/shared/protocol/tests/xpcshell/test_protocol_children.js @@ -193,7 +193,7 @@ class ChildFront extends protocol.FrontClassWithSpec(childSpec) { }); } - onEvent2b(a, b, c) { + onEvent2b(a, b) { this.event2arg2 = b; } } @@ -596,7 +596,7 @@ async function testManyChildren(trace) { Assert.equal(ret.more[1].childID, "child7"); } -async function testGenerator(trace) { +async function testGenerator() { // Test accepting a generator. const f = function* () { for (const i of [1, 2, 3, 4, 5]) { @@ -623,7 +623,7 @@ async function testGenerator(trace) { Assert.ok(ret[1] instanceof ChildFront); } -async function testPolymorphism(trace) { +async function testPolymorphism() { // Check polymorphic types returned by an actor const firstChild = await rootFront.getPolymorphism(0); Assert.ok(firstChild instanceof ChildFront); @@ -653,7 +653,7 @@ async function testPolymorphism(trace) { }, /Was expecting one of these actors 'childActor,otherChildActor' but instead got an actor of type: 'root'/); } -async function testUnmanageChildren(trace) { +async function testUnmanageChildren() { // There is already one front of type OtherChildFront Assert.equal(childrenOfType(rootFront, OtherChildFront).length, 1); @@ -671,7 +671,7 @@ async function testUnmanageChildren(trace) { Assert.equal(childrenOfType(rootFront, OtherChildFront).length, 0); } -async function testDestroy(trace) { +async function testDestroy() { const front = await rootFront.getOtherChild(); const otherChildFront = await front.getOtherChild(); Assert.equal( diff --git a/devtools/shared/protocol/tests/xpcshell/test_protocol_longstring.js b/devtools/shared/protocol/tests/xpcshell/test_protocol_longstring.js index cda1708520..3d8912cd2a 100644 --- a/devtools/shared/protocol/tests/xpcshell/test_protocol_longstring.js +++ b/devtools/shared/protocol/tests/xpcshell/test_protocol_longstring.js @@ -124,7 +124,7 @@ function run_test() { Assert.equal(rootFront.__poolMap.size, size + 1); }; - client.connect().then(([applicationType, traits]) => { + client.connect().then(([applicationType]) => { rootFront = client.mainRoot; // Root actor has no children yet. |