From 1d24c38ca30445130c8f54642a55cd0512140d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Mon, 29 Jul 2024 20:23:59 +1000 Subject: [PATCH] Digital Credentials: switch to InvalidStateError (#47326) --- digital-credentials/non-fully-active.https.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/digital-credentials/non-fully-active.https.html b/digital-credentials/non-fully-active.https.html index dac4cecb78c03d..82b87b63d7dea3 100644 --- a/digital-credentials/non-fully-active.https.html +++ b/digital-credentials/non-fully-active.https.html @@ -42,28 +42,28 @@ // Try to get credentials while not fully active... await promise_rejects_dom( t, - "NotAllowedError", + "InvalidStateError", DOMExceptionCtor, identity.get({ signal }), - "Expected NotAllowedError for get() on non-fully-active document" + "Expected InvalidStateError for get() on non-fully-active document" ); // Try to create credentials while not fully active... await promise_rejects_dom( t, - "NotAllowedError", + "InvalidStateError", DOMExceptionCtor, identity.create({ signal }), - "Expected NotAllowedError for create() on non-fully-active document" + "Expected InvalidStateError for create() on non-fully-active document" ); // Try to prevent silent access while not fully active... await promise_rejects_dom( t, - "NotAllowedError", + "InvalidStateError", DOMExceptionCtor, identity.preventSilentAccess(), - "Expected NotAllowedError for preventSilentAccess() on non-fully-active document" + "Expected InvalidStateError for preventSilentAccess() on non-fully-active document" ); }, "non-fully active document behavior for CredentialsContainer");