diff options
Diffstat (limited to 'testing/web-platform/tests/credential-management/fedcm-register')
-rw-r--r-- | testing/web-platform/tests/credential-management/fedcm-register/fedcm-no-registered-idps.https.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/credential-management/fedcm-register/fedcm-no-registered-idps.https.html b/testing/web-platform/tests/credential-management/fedcm-register/fedcm-no-registered-idps.https.html new file mode 100644 index 0000000000..7be2d397e6 --- /dev/null +++ b/testing/web-platform/tests/credential-management/fedcm-register/fedcm-no-registered-idps.https.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<title>Federated Credential Management API network request tests.</title> +<link rel="help" href="https://fedidcg.github.io/FedCM"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/resources/testdriver.js"></script> +<script src="/resources/testdriver-vendor.js"></script> + +<body> + +<script type="module"> +promise_test(async t => { + const cred = navigator.credentials.get({ + identity: { + providers: [{ + configURL: "any", + clientId: "na", + nonce: "1" + }] + } + }); + return promise_rejects_dom(t, 'NetworkError', cred); +}, "When no providers are registered an error should be returned."); + +</script> |