blob: 45f6e6b48e2167fabb826f55f084c1b4a5a3501c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!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>
|