(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(); | |
}) |