зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1910326 [wpt PR 47326] - Digital Credentials: switch to InvalidStateError, a=testonly
Automatic update from web-platform-tests Digital Credentials: switch to InvalidStateError (#47326) -- wpt-commits: 1d24c38ca30445130c8f54642a55cd0512140d30 wpt-pr: 47326
This commit is contained in:
Родитель
7fe0f7bb3b
Коммит
5f968c9218
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче