blob: 90b61725e513c57ce9a4784d5b223e6dc09164a5 [file] [log] [blame]
Test decrypting with malformed parameters
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS crypto.subtle.decrypt() rejected promise with TypeError: Not enough arguments.
PASS crypto.subtle.decrypt(1) rejected promise with TypeError: Not enough arguments.
PASS crypto.subtle.decrypt(1, 2) rejected promise with TypeError: Not enough arguments.
PASS crypto.subtle.decrypt(aesCbcParams, wrongKey, cipherText) rejected promise with InvalidAccessError: CryptoKey doesn't match AlgorithmIdentifier.
PASS crypto.subtle.decrypt(aesCbcParams, wrongKey, cipherText) rejected promise with InvalidAccessError: CryptoKey doesn't support decryption.
PASS successfullyParsed is true
TEST COMPLETE