blob: 09fe3745c9cd94022e1955ff6af6d668ac69895e [file] [log] [blame]
Tests generateKey() with bad AES-CBC parameters.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
generateKey() with invalid keyUsages value that is -1...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': The provided value cannot be converted to a sequence.
generateKey() with invalid keyUsages value that is null...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': The provided value cannot be converted to a sequence.
generateKey() with an invalid key usage of 'boo'...
error is: TypeError: Invalid keyUsages argument
generateKey() without length...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': AesKeyGenParams: length: Missing required property
generateKey() with a length of 70000...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': AesKeyGenParams: length: Outside of numeric range
generateKey() with a length of -3...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': AesKeyGenParams: length: Outside of numeric range
generateKey() with length that is minus Infinity...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': AesKeyGenParams: length: Outside of numeric range
PASS successfullyParsed is true
TEST COMPLETE