Automatic update from web-platform-tests Extend report polling timeout to 5000 ms Some Web Platform Tests (integrating Private Aggregation with Protected Audience) are seeing timeouts while waiting for this to return. The timeout is currently set to 1000 ms. Also marks these WPTs as slow. Bug: 1488122 Change-Id: I0f48ddcbec2240378ef7939392f75160ab271981 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4907950 Reviewed-by: Qingxin Wu <qingxinwu@google.com> Commit-Queue: Alex Turner <alexmt@chromium.org> Cr-Commit-Position: refs/heads/main@{#1204139} -- wpt-commits: 53a1893049d0af1c1b2751a74b47ee227286f16a wpt-pr: 42290
71 lines
2.0 KiB
HTML
71 lines
2.0 KiB
HTML
<!doctype html>
|
|
<meta name=timeout content=long>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/common/utils.js"></script>
|
|
<script src="resources/protected-audience-helper-module.js"></script>
|
|
|
|
<body>
|
|
<script>
|
|
'use strict';
|
|
|
|
promise_test(async test => {
|
|
const uuid = generateUuid();
|
|
const contribution = '{ bucket: 340282366920938463463374607431768211456n, value: 1 }';
|
|
|
|
await runReportTest(test, uuid,
|
|
{ scoreAd:
|
|
`try {
|
|
privateAggregation.contributeToHistogram(${contribution});
|
|
} catch {
|
|
forDebuggingOnly.reportAdAuctionWin('${createWritingURL(uuid)}');
|
|
}`},
|
|
/*expectedNumReports=*/ 1);
|
|
}, 'contributeToHistogram() with too large bucket in scoreAd()');
|
|
|
|
promise_test(async test => {
|
|
const uuid = generateUuid();
|
|
const contribution = '{ bucket: -1n, value: 1 }';
|
|
|
|
await runReportTest(test, uuid,
|
|
{ reportResult:
|
|
`try {
|
|
privateAggregation.contributeToHistogram(${contribution});
|
|
} catch {
|
|
sendReportTo('${createWritingURL(uuid)}');
|
|
}`},
|
|
/*expectedNumReports=*/ 1);
|
|
}, 'contributeToHistogram() with negative bucket in reportResult()');
|
|
|
|
|
|
promise_test(async test => {
|
|
const uuid = generateUuid();
|
|
const contribution = '{ bucket: 1, value: 1 }';
|
|
|
|
await runReportTest(test, uuid,
|
|
{ generateBid:
|
|
`try {
|
|
privateAggregation.contributeToHistogram(${contribution});
|
|
} catch {
|
|
forDebuggingOnly.reportAdAuctionWin('${createWritingURL(uuid)}');
|
|
}`},
|
|
/*expectedNumReports=*/ 1);
|
|
}, 'contributeToHistogram() with non-BigInt bucket in generateBid()');
|
|
|
|
promise_test(async test => {
|
|
const uuid = generateUuid();
|
|
const contribution = '{ bucket: 1n, value: -1 }';
|
|
|
|
await runReportTest(test, uuid,
|
|
{ reportWin:
|
|
`try {
|
|
privateAggregation.contributeToHistogram(${contribution});
|
|
} catch {
|
|
sendReportTo('${createWritingURL(uuid)}');
|
|
}`},
|
|
/*expectedNumReports=*/ 1);
|
|
}, 'contributeToHistogram() with negative value in reportWin()');
|
|
|
|
</script>
|
|
</body>
|