| 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 |
| |