blob: 6ce1dfbce867e0c07553d38d24f7685765a7fa9e [file] [log] [blame]
Tests that PublicKeyCredential's [[create]] throws TypeError when invalid options are passed.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialCreationOptions.rp is required and must be an instance of PublicKeyCredentialRpEntity.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialCreationOptions.user is required and must be an instance of PublicKeyCredentialUserEntity.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialCreationOptions.challenge is required and must be an instance of (ArrayBufferView or ArrayBuffer).
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialCreationOptions.pubKeyCredParams is required and must be an instance of sequence.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialRpEntity.name is required and must be an instance of DOMString.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialUserEntity.name is required and must be an instance of DOMString.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialUserEntity.id is required and must be an instance of (ArrayBufferView or ArrayBuffer).
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialUserEntity.displayName is required and must be an instance of DOMString.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialParameters.type is required and must be an instance of PublicKeyCredentialType.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialParameters.alg is required and must be an instance of long.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialDescriptor.type is required and must be an instance of PublicKeyCredentialType.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Member PublicKeyCredentialDescriptor.id is required and must be an instance of (ArrayBufferView or ArrayBuffer).
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a number.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a number.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Cannot convert a symbol to a string.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS navigator.credentials.create(invalidOptions) rejected promise with TypeError: Type error.
PASS successfullyParsed is true
TEST COMPLETE