From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- .../tests/fenced-frame/resources/automatic-beacon-helper.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'testing/web-platform/tests/fenced-frame/resources/automatic-beacon-helper.js') diff --git a/testing/web-platform/tests/fenced-frame/resources/automatic-beacon-helper.js b/testing/web-platform/tests/fenced-frame/resources/automatic-beacon-helper.js index d0a4133e84..8286c94fec 100644 --- a/testing/web-platform/tests/fenced-frame/resources/automatic-beacon-helper.js +++ b/testing/web-platform/tests/fenced-frame/resources/automatic-beacon-helper.js @@ -92,13 +92,12 @@ async function setupAutomaticBeacon( async function verifyBeaconData( event_type, event_data, expected_success = true, t) { if (expected_success) { - const beacon_initiator_origin = - await nextAutomaticBeacon(event_type, event_data); + const beacon_initiator_origin = await nextBeacon(event_type, event_data); assert_equals(beacon_initiator_origin, get_host_info().HTTPS_ORIGIN); } else { const timeout = new Promise(r => t.step_timeout(r, 1000)); - const result = await Promise.race( - [nextAutomaticBeacon(event_type, event_data), timeout]); + const result = + await Promise.race([nextBeacon(event_type, event_data), timeout]); assert_true(typeof result === 'undefined'); } } -- cgit v1.2.3