blob: dae56c0ee6a075fcb63101a5f3a3a2343f452d4f [file] [log] [blame]
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