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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/crypto/wrap-unwrap.html ('k') | Source/modules/crypto/Key.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Tests cypto.subtle.sign and crypto.subtle.verify
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS crypto.subtle.wrapKey('bad-format', key, wrappingKey, wrapAlgorithm) threw exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid keyF ormat argument.
7 PASS crypto.subtle.wrapKey('raw', 1, wrappingKey, wrapAlgorithm) threw exception TypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid key argument.
8 PASS crypto.subtle.wrapKey('raw', key, '', wrapAlgorithm) threw exception TypeEr ror: Failed to execute 'wrapKey' on 'SubtleCrypto': Invalid wrappingKey argument .
9 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, undefined) threw exception T ypeError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm: Not an objec t.
10 PASS crypto.subtle.wrapKey('raw', keys.aesCbcJustDecrypt, wrappingKey, wrapAlgor ithm) threw exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleC rypto': key is not extractable.
11 PASS crypto.subtle.wrapKey('raw', key, keys.aesCbcJustDecrypt, wrapAlgorithm) th rew exception NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': key.usages does not permit this operation.
12 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, {name: 'SHA-1'}) threw excep tion NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': Algorithm : SHA-1: Unsupported operation.
13 PASS crypto.subtle.wrapKey('raw', key, wrappingKey, aesCtrAlgorithm) threw excep tion NotSupportedError: Failed to execute 'wrapKey' on 'SubtleCrypto': key.algor ithm does not match that of operation.
14 PASS crypto.subtle.unwrapKey('bad-format', wrappedKey, unwrappingKey, unwrapAlgo rithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Invalid keyFormat argument.
15 PASS crypto.subtle.unwrapKey('raw', null, unwrappingKey, unwrapAlgorithm, unwrap pedKeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to ex ecute 'unwrapKey' on 'SubtleCrypto': Invalid wrappedKey argument.
16 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, unwrapped KeyAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execu te 'unwrapKey' on 'SubtleCrypto': Invalid unwrappingKey argument.
17 PASS crypto.subtle.unwrapKey('raw', wrappedKey, keys.aesCbcJustDecrypt, unwrapAl gorithm, unwrappedKeyAlgorithm, extractable, keyUsages) threw exception NotSuppo rtedError: Failed to execute 'unwrapKey' on 'SubtleCrypto': key.usages does not permit this operation.
18 PASS crypto.subtle.unwrapKey('raw', wrappedKey, 'hi', unwrapAlgorithm, null, ext ractable, 9) threw exception TypeError: The 7th argument is neither an array, no r does it have indexed properties..
19 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, null, unwrappedKe yAlgorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapKey' on 'SubtleCrypto': Algorithm: Not an object.
20 PASS crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgorithm, 3, extractable, keyUsages) threw exception TypeError: Failed to execute 'unwrapK ey' on 'SubtleCrypto': parameter 5 ('unwrappedKeyAlgorithm') is not an object..
21 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.
22 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.
23 PASS successfullyParsed is true
24
25 TEST COMPLETE
26
OLDNEW
« 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