Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: LayoutTests/crypto/wrap-unwrap-expected.txt

Issue 109223002: [webcrypto] Add crypto.subtle.wrapKey() and crypto.subtle.unwrapKey() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase test expectations (to match latest changes I had made) Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/crypto/wrap-unwrap.html ('k') | Source/modules/crypto/Key.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/wrap-unwrap-expected.txt
diff --git a/LayoutTests/crypto/wrap-unwrap-expected.txt b/LayoutTests/crypto/wrap-unwrap-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..85d531a68621e1bd50e95a70a4a48d2fbcce28af
--- /dev/null
+++ b/LayoutTests/crypto/wrap-unwrap-expected.txt
@@ -0,0 +1,26 @@
+Tests cypto.subtle.sign and crypto.subtle.verify
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS crypto.subtle.wrapKey('bad-format', key, wrappingKey, wrapAlgorithm) threw exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid keyFormat argument.
+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 crypto.subtle.wrapKey('raw', keys.aesCbcJustDecrypt, wrappingKey, wrapAlgorithm) threw exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': key is not extractable.
+PASS crypto.subtle.wrapKey('raw', key, keys.aesCbcJustDecrypt, wrapAlgorithm) threw exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': key.usages does not permit this operation.
+PASS crypto.subtle.wrapKey('raw', key, wrappingKey, {name: 'SHA-1'}) threw exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm: SHA-1: Unsupported operation.
+PASS crypto.subtle.wrapKey('raw', key, wrappingKey, aesCtrAlgorithm) threw exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': key.algorithm does not match that of operation.
+PASS crypto.subtle.unwrapKey('bad-format', wrappedKey, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Invalid keyFormat argument.
+PASS crypto.subtle.unwrapKey('raw', null, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Invalid wrappedKey argument.
+PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Invalid unwrappingKey argument.
+PASS crypto.subtle.unwrapKey('raw', wrappedKey, keys.aesCbcJustDecrypt, unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception NotSupportedError: Failed to execute 'unwrapKey' on 'SubtleCrypto': key.usages does not permit this operation.
+PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, null, extractable, 9) threw exception TypeError: The 7th argument is neither an array, nor does it have indexed properties..
+PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, null, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Algorithm: Not an object.
+PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgorithm, 3, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object..
+PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, {name: 'SHA-1'}, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception NotSupportedError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Algorithm: SHA-1: Unsupported operation.
+PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, aesCtrAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception NotSupportedError: Failed to execute 'unwrapKey' on 'SubtleCrypto': key.algorithm does not match that of operation.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/wrap-unwrap.html ('k') | Source/modules/crypto/Key.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698