summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/trust-tokens/end-to-end/has-trust-token-with-no-top-frame.tentative.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/trust-tokens/end-to-end/has-trust-token-with-no-top-frame.tentative.https.html')
-rw-r--r--testing/web-platform/tests/trust-tokens/end-to-end/has-trust-token-with-no-top-frame.tentative.https.html8
1 files changed, 5 insertions, 3 deletions
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.');
</script>
</body>