blob: b6b6ec19de538ae26b1cef1887042919d70f751a [file] [log] [blame]
Tests calls to unwrapKey() with bad inputs.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'
error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': parameter 3 is not of type 'CryptoKey'.
error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Failed to convert value to 'object'.
error is: TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Failed to convert value to 'object'.
error is: NotSupportedError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Algorithm: Unrecognized name
error is: TypeError: Invalid keyFormat argument
error is: NotSupportedError: Failed to execute 'unwrapKey' on 'SubtleCrypto': SHA-1: Unsupported operation: unwrapKey
error is: InvalidAccessError: key.algorithm does not match that of operation
PASS successfullyParsed is true
TEST COMPLETE