blob: 58a0385cb0ba832b10c788989c7209415315238f [file] [log] [blame]
(async function(testRunner) {
const {page, session, dp} =
await testRunner.startBlank(
"Check that the WebAuthn command clearCredentials validates parameters");
// Try without enabling the WebAuthn environment.
testRunner.log(await dp.WebAuthn.clearCredentials({
authenticatorId: "nonsense"
}));
// Try for an authenticator that does not exist.
await dp.WebAuthn.enable();
testRunner.log(await dp.WebAuthn.clearCredentials({
authenticatorId: "nonsense"
}));
testRunner.completeTest();
})