Skip to content

Commit ef85d98

Browse files
brusshamiltonmoz-wptsync-bot
authored andcommitted
Bug 1950141 [wpt PR 50741] - Add WPT for getInterestGroupAdAuctionData with no sellers, a=testonly
Automatic update from web-platform-tests Add WPT for getInterestGroupAdAuctionData with no sellers Change-Id: If1522e8c83342709e3b9beec23eb5828389228e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6271265 Reviewed-by: Qingxin Wu <[email protected]> Commit-Queue: Russ Hamilton <[email protected]> Auto-Submit: Russ Hamilton <[email protected]> Cr-Commit-Position: refs/heads/main@{#1423904} -- wpt-commits: f44234f2cb4a12d664c291ce1daca0d984dcb17e wpt-pr: 50741
1 parent da05195 commit ef85d98

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

testing/web-platform/tests/fledge/tentative/get-interest-group-auction-data.https.window.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ subsetTest(promise_test, async test => {
774774
await joinInterestGroup(test, uuid, igConfig);
775775

776776
await promise_rejects_js(test, TypeError, navigator.getInterestGroupAdAuctionData({
777-
coordinatorOrigin: window.location.origin,
778777
sellers: [{
779778
coordinatorOrigin: await BA.configureCoordinator(),
780779
seller: window.location.origin,
@@ -785,3 +784,15 @@ subsetTest(promise_test, async test => {
785784
]
786785
}));
787786
}, 'getInterestGroupAdAuctionData() doesn\'t allow duplicate sellers in "sellers" field');
787+
788+
subsetTest(promise_test, async test => {
789+
const uuid = generateUuid(test);
790+
const igConfig = makeTemplateIgConfig(uuid);
791+
await joinInterestGroup(test, uuid, igConfig);
792+
793+
const result = await navigator.getInterestGroupAdAuctionData({
794+
sellers: []
795+
});
796+
assert_equals(result.requestId, "");
797+
assert_array_equals(result.requests, []);
798+
}, 'getInterestGroupAdAuctionData() with no sellers');

0 commit comments

Comments
 (0)