Skip to content

Commit

Permalink
Fix idlharness maplike and setlike tests
Browse files Browse the repository at this point in the history
#33951 was slightly incorrect.

Fixed: 1344001

Change-Id: Ib167216a4dfcc579c32c6774b8df62d7e8d2a1eb
  • Loading branch information
domenic authored and chromium-wpt-export-bot committed Nov 15, 2022
1 parent 9c1b179 commit 6493e46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 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 6493e46

Please sign in to comment.