https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1684125d42db960069ea56fb55494b54d1952c34 authored by James Graham on 23 October 2017, 09:37:57 UTC
Handle spaces in path in |wpt test-files|
Tip revision: 1684125
makecredential-badargs-attestationchallenge.https.html
<!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>
back to top