| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>WebAuthn makeCredential attestationChallenge Tests</title> |
| <link rel="author" title="Adam Powers" href="mailto:adam@fidoalliance.org"> |
| <link rel="help" href="https://w3c.github.io/webauthn/#iface-credential"> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src=helpers.js></script> |
| <body></body> |
| <script> |
| standardSetup(function() { |
| "use strict"; |
| |
| // attestationChallenge bad values |
| new MakeCredentialTest({path: "attestationChallenge", value: undefined}).testBadArgs("attestationChallenge missing"); |
| new MakeCredentialTest("attestationChallenge", "hi mom").testBadArgs("accountInformation is string"); |
| new MakeCredentialTest("attestationChallenge", {}).testBadArgs("accountInformation is empty object"); |
| new MakeCredentialTest("attestationChallenge", Uint8Array.from([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17])).testBadArgs("accountInformation is Uint8Array"); |
| }); |
| </script> |