-CONSOLE ERROR: Invalid keyFormat argument
-CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
-CONSOLE ERROR: key.algorithm does not match that of operation
Tests calls to wrapKey() with bad inputs.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS crypto.subtle.wrapKey('raw', 1, wrappingKey, wrapAlgorithm) threw exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid key argument.
-PASS crypto.subtle.wrapKey('raw', key, '', wrapAlgorithm) threw exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid wrappingKey argument.
-PASS crypto.subtle.wrapKey('raw', key, wrappingKey, undefined) threw exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm: Not an object.
-PASS error is null
-PASS error is null
-PASS error is null
+error is: DataError: Invalid key argument
+error is: DataError: Invalid wrappingKey argument
+error is: SyntaxError: Algorithm: Not an object
+error is: SyntaxError: 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