getcredential-hints.https.html (860B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>navigator.credentials.get() with hints</title> 4 <meta name="timeout" content="long"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testdriver.js"></script> 8 <script src="/resources/testdriver-vendor.js"></script> 9 <script src=helpers.js></script> 10 <body></body> 11 <script> 12 standardSetup(async function() { 13 "use strict"; 14 15 const credPromise = createCredential(); 16 17 // The 'hints' parameter affects UI, which cannot be tested with WPTs. 18 // However, we can check that unknown values are ignored, as they 19 // should be, and don't trigger an error. 20 new GetCredentialsTest("options.publicKey.hints", ["not-a-defined-value"]) 21 .addCredential(credPromise) 22 .runTest("navigator.credentials.get with hints"); 23 }, {}); 24 </script>