haikuwebkit/LayoutTests/crypto/subtle/verify-malformed-parameters...

16 lines
832 B
Plaintext

Test verification with malformed parameters
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS crypto.subtle.verify() rejected promise with TypeError: Not enough arguments.
PASS crypto.subtle.verify(1) rejected promise with TypeError: Not enough arguments.
PASS crypto.subtle.verify(1, 2) rejected promise with TypeError: Not enough arguments.
PASS crypto.subtle.verify(1, 2, 3) rejected promise with TypeError: Not enough arguments.
PASS crypto.subtle.verify("rsassa-pkcs1-v1_5", wrongKey, signature, text) rejected promise with InvalidAccessError: CryptoKey doesn't match AlgorithmIdentifier.
PASS crypto.subtle.verify("hmac", wrongKey, signature, text) rejected promise with InvalidAccessError: CryptoKey doesn't support verification.
PASS successfullyParsed is true
TEST COMPLETE