1
0
Fork 0
firefox/testing/web-platform/tests/fetch/fetch-later/quota/small-payload.tentative.https.window.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
600 B
JavaScript

// META: script=/common/get-host-info.sub.js
// META: script=/common/utils.js
// META: script=/fetch/fetch-later/resources/fetch-later-helper.js
'use strict';
const SMALL_REQUEST_BODY_SIZE = 20;
for (const dataType in BeaconDataType) {
// Test making a POST request with small payload.
parallelPromiseTest(
async _ => expectFetchLater({
activateAfter: 0,
method: 'POST',
body:
makeBeaconData(generatePayload(SMALL_REQUEST_BODY_SIZE), dataType),
}),
`fetchLater() accepts small payload in a POST request body of ${
dataType}.`);
}