Automatic update from web-platform-tests webauthn: add conditionalCreate client capability Add the capability value and make it reflect the state of the kWebAuthnPasskeyUpgrade feature flag. Include-Ci-Only-Tests: chromium.mac:mac14-tests|browser_tests Fixed: 402565612 Change-Id: I1474feb04c510663b39655b4c1047d4593561cff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6345001 Reviewed-by: Nina Satragno <nsatragno@chromium.org> Commit-Queue: Martin Kreichgauer <martinkr@google.com> Cr-Commit-Position: refs/heads/main@{#1431567} -- wpt-commits: 507929d425f770423fed36d2c77c2b81d8263544 wpt-pr: 51296
40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>Conditional Mediation tests</title>
|
|
<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>
|
|
"use strict";
|
|
|
|
// Test that conditional mediation (get) is supported.
|
|
virtualAuthenticatorPromiseTest(async t => {
|
|
assert_own_property(window.PublicKeyCredential, "isConditionalMediationAvailable");
|
|
assert_true(await window.PublicKeyCredential.isConditionalMediationAvailable());
|
|
}, {
|
|
protocol: "ctap2",
|
|
hasResidentKey: true,
|
|
hasUserVerification: true,
|
|
transport: "internal",
|
|
}, "Conditional mediation supported"
|
|
);
|
|
|
|
|
|
// Test that conditional create is supported.
|
|
virtualAuthenticatorPromiseTest(async t => {
|
|
assert_own_property(window.PublicKeyCredential, "getClientCapabilities");
|
|
let capabilities = await window.PublicKeyCredential.getClientCapabilities();
|
|
assert_true(typeof (capabilities["conditionalCreate"]) == "boolean");
|
|
assert_true(capabilities["conditionalCreate"]);
|
|
}, {
|
|
protocol: "ctap2",
|
|
hasResidentKey: true,
|
|
hasUserVerification: true,
|
|
transport: "internal",
|
|
}, "Conditional create supported");
|
|
|
|
</script>
|