Skip to content

Commit

Permalink
Digital Credentials: switch to InvalidStateError (#47326)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Jul 29, 2024
1 parent 5c0712e commit 1d24c38
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions digital-credentials/non-fully-active.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");
</script>

0 comments on commit 1d24c38

Please sign in to comment.