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