Index: LayoutTests/crypto/wrapKey-badParameters-expected.txt |
diff --git a/LayoutTests/crypto/importKey-badParameters-expected.txt b/LayoutTests/crypto/wrapKey-badParameters-expected.txt |
similarity index 26% |
copy from LayoutTests/crypto/importKey-badParameters-expected.txt |
copy to LayoutTests/crypto/wrapKey-badParameters-expected.txt |
index 02826af7974460622f49b1cda2fb5370fecc4a31..6ae677e9680180cf01ad667b4335396c2b22c4a5 100644 |
--- a/LayoutTests/crypto/importKey-badParameters-expected.txt |
+++ b/LayoutTests/crypto/wrapKey-badParameters-expected.txt |
@@ -1,18 +1,14 @@ |
CONSOLE ERROR: Invalid keyFormat argument |
-CONSOLE ERROR: Invalid keyUsages argument |
-CONSOLE ERROR: Invalid keyFormat argument |
-CONSOLE ERROR: Algorithm: HMAC: HmacImportParams: hash: Missing or not a dictionary |
CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation |
-Tests calling cypto.subtle.importKey with bad parameters |
+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.importKey('raw', [], aesCbc, extractable, ['encrypt']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyData argument. |
-PASS crypto.subtle.importKey('raw', null, aesCbc, extractable, ['encrypt']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyData argument. |
-PASS crypto.subtle.importKey('raw', aesCbc, null, extractable, ['encrypt']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyData argument. |
-PASS error is null |
-PASS error is null |
+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 |