Tests generateKey() with bad RSA-OAEP parameters.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
generateKey() with a modulusLength -30...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: modulusLength: Outside of numeric range
generateKey() with modulusLength NaN...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: modulusLength: Is not a number
generateKey() without modulusLength...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: modulusLength: Missing required property
generateKey() without publicExponent...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array
generateKey() with publicExponent that is an integer...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array
generateKey() with publicExponent that is null...
error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: publicExponent: Missing or not a Uint8Array
generateKey() with invalid hash name...
error is: NotSupportedError: Failed to execute 'generateKey' on 'SubtleCrypto': RsaHashedKeyGenParams: hash: Algorithm: Unrecognized name
PASS successfullyParsed is true
TEST COMPLETE