Skip to content

Commit

Permalink
Bug 1800402 [wpt PR 36950] - Fix idlharness maplike and setlike tests…
Browse files Browse the repository at this point in the history
…, a=testonly

Automatic update from web-platform-tests
Fix idlharness maplike and setlike tests

web-platform-tests/wpt#33951 was slightly incorrect.

Fixed: 1344001

Change-Id: Ib167216a4dfcc579c32c6774b8df62d7e8d2a1eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4022517
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1071969}

--

wpt-commits: 56ec9beaab4ecd393f99d256a2ac2a4e66a09f9c
wpt-pr: 36950
  • Loading branch information
domenic authored and moz-wptsync-bot committed Nov 21, 2022
1 parent fcb19c5 commit edb91c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testing/web-platform/tests/resources/idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ IdlInterface.prototype.test_member_maplike = function(member) {
methods.push(
["set", 2],
["delete", 1],
["clear", 1]
["clear", 0]
);
}

Expand All @@ -2474,8 +2474,8 @@ IdlInterface.prototype.test_member_maplike = function(member) {
assert_equals(sizeDesc.set, undefined, `size should not have a setter`);
assert_equals(sizeDesc.enumerable, true, `size enumerable`);
assert_equals(sizeDesc.configurable, true, `size configurable`);
assert_equals(sizeDesc.get.length, 0, `size getter length should have the right length`);
assert_equals(sizeDesc.get.name, "get size", `size getter have the right name`);
assert_equals(sizeDesc.get.length, 0, `size getter length`);
assert_equals(sizeDesc.get.name, "get size", `size getter name`);
}, `${this.name} interface: maplike<${member.idlType.map(t => t.idlType).join(", ")}>`);
};

Expand All @@ -2494,7 +2494,7 @@ IdlInterface.prototype.test_member_setlike = function(member) {
methods.push(
["add", 1],
["delete", 1],
["clear", 1]
["clear", 0]
);
}

Expand All @@ -2519,8 +2519,8 @@ IdlInterface.prototype.test_member_setlike = function(member) {
assert_equals(sizeDesc.set, undefined, `size should not have a setter`);
assert_equals(sizeDesc.enumerable, true, `size enumerable`);
assert_equals(sizeDesc.configurable, true, `size configurable`);
assert_equals(sizeDesc.get.length, 0, `size getter length should have the right length`);
assert_equals(sizeDesc.get.name, "size", `size getter have the right name`);
assert_equals(sizeDesc.get.length, 0, `size getter length`);
assert_equals(sizeDesc.get.name, "get size", `size getter name`);
}, `${this.name} interface: setlike<${member.idlType.map(t => t.idlType).join(", ")}>`);
};

Expand Down

0 comments on commit edb91c1

Please sign in to comment.