| Test generating an AES key using AES-CBC algorithm. |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| PASS crypto.subtle.generateKey("aes-cbc", extractable, ["encrypt", "decrypt"]) threw exception TypeError: Type error. |
| PASS crypto.subtle.generateKey({name: "aes-cbc"}, extractable, ["encrypt", "decrypt"]) threw exception TypeError: Value NaN is outside the range [0, 65535]. |
| PASS crypto.subtle.generateKey({name: "aes-cbc", length: undefined}, extractable, ["encrypt", "decrypt"]) threw exception TypeError: Value NaN is outside the range [0, 65535]. |
| PASS crypto.subtle.generateKey({name: "aes-cbc", length: {}}, extractable, ["encrypt", "decrypt"]) threw exception TypeError: Value NaN is outside the range [0, 65535]. |
| PASS key.type is 'secret' |
| PASS key.extractable is true |
| PASS key.algorithm.name is 'AES-CBC' |
| PASS key.algorithm.length is 128 |
| PASS key.usages is ['decrypt', 'encrypt'] |
| PASS successfullyParsed is true |