fedcm-basic.https.html (827B)
1 <!DOCTYPE html> 2 <title>Federated Credential Management API network request tests.</title> 3 <link rel="help" href="https://fedidcg.github.io/FedCM"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testdriver.js"></script> 7 <script src="/resources/testdriver-vendor.js"></script> 8 9 <body> 10 11 <script type="module"> 12 import {fedcm_test, 13 request_options_with_mediation_required, 14 fedcm_get_and_select_first_account} from './support/fedcm-helper.sub.js'; 15 16 fedcm_test(async t => { 17 const cred = await fedcm_get_and_select_first_account(t, request_options_with_mediation_required()); 18 assert_equals(cred.token, "token"); 19 assert_equals(cred.isAutoSelected, false); 20 }, "Successfully obtaining token should resolve the promise."); 21 22 </script>