Automatic update from web-platform-tests Add tests of duplicate PublicKeyCredentialHint values This relates to WebAuthn PR #2145: https://github.com/w3c/webauthn/pull/2145 And in turn WebAuthn issue #2134: "Clarify behaviour of duplicate hints" https://github.com/w3c/webauthn/issues/2135 -- Restore parseCreationOptionsFromJSON() test with default hints -- Delete incorrect comment -- wpt-commits: 4fbb52f702779514c0eda03ebe91d7b0b365237c, 7e268b69d79672765b8893be228e2e267c02daeb, 934edca6015a1974c1e2314fe5aae3d56bd51be3 wpt-pr: 48096
25 lines
900 B
HTML
25 lines
900 B
HTML
<!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", ["duplicated-value", "not-a-defined-value", "duplicated-value"])
|
|
.addCredential(credPromise)
|
|
.runTest("navigator.credentials.get with hints");
|
|
}, {});
|
|
</script>
|