From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../has-trust-token-with-no-top-frame.tentative.https.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'testing/web-platform/tests/trust-tokens/end-to-end') diff --git a/testing/web-platform/tests/trust-tokens/end-to-end/has-trust-token-with-no-top-frame.tentative.https.html b/testing/web-platform/tests/trust-tokens/end-to-end/has-trust-token-with-no-top-frame.tentative.https.html index a384bec3c2..bc92422e36 100644 --- a/testing/web-platform/tests/trust-tokens/end-to-end/has-trust-token-with-no-top-frame.tentative.https.html +++ b/testing/web-platform/tests/trust-tokens/end-to-end/has-trust-token-with-no-top-frame.tentative.https.html @@ -12,11 +12,13 @@ const frame = document.createElement('iframe'); document.body.appendChild(frame); const cachedDocument = window[0].document; + const IFrameDOMException = frame.contentWindow.DOMException; frame.remove(); - test(() => { - assert_equals(cachedDocument.hasPrivateToken("https://issuer.example"), undefined, - "Can't construct a Promise in a destroyed execution context."); + promise_test(async t => { + await promise_rejects_dom( + t, 'InvalidStateError', IFrameDOMException, + cachedDocument.hasPrivateToken("https://issuer.example")); }, 'hasPrivateToken in a destroyed document.'); -- cgit v1.2.3