Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webauthn/getcredential-hints.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>navigator.credentials.get() with hints</title>
<meta name="timeout" content="long">
<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>
<script src=helpers.js></script>
<body></body>
<script>
standardSetup(async function() {
"use strict";
const credPromise = createCredential();
// The 'hints' parameter affects UI, which cannot be tested with WPTs.
// However, we can check that unknown values are ignored, as they
// should be, and don't trigger an error.
new GetCredentialsTest("options.publicKey.hints", ["not-a-defined-value"])
.addCredential(credPromise)
.runTest("navigator.credentials.get with hints");
}, {});
</script>