Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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>