fedcm-domainhint-matches-from-two-accounts.https.html (925B)
1 <!DOCTYPE html> 2 <title>Federated Credential Management API domain hint matches an account from two accounts.</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 <body> 9 10 <script type="module"> 11 import { 12 fedcm_test, 13 request_options_with_domain_hint, 14 select_manifest, 15 fedcm_get_and_select_first_account 16 } from './support/fedcm-helper.sub.js'; 17 18 fedcm_test(async t => { 19 let options = request_options_with_domain_hint( 20 'manifest_with_two_accounts.json', 'example'); 21 await select_manifest(t, options); 22 23 const cred = await fedcm_get_and_select_first_account(t, options); 24 assert_equals(cred.token, 'account_id=john_doe'); 25 }, "Domain hint matches an account from two accounts."); 26 </script>