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

Side by Side Diff: LayoutTests/crypto/importKey-expected.txt

Issue 198513002: [webcrypto] Make the import algorithm a required parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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/importKey.html ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatte d key.
2 CONSOLE ERROR: Invalid keyFormat argument 1 CONSOLE ERROR: Invalid keyFormat argument
3 CONSOLE ERROR: Invalid keyUsages argument 2 CONSOLE ERROR: Invalid keyUsages argument
4 CONSOLE ERROR: Invalid keyFormat argument 3 CONSOLE ERROR: Invalid keyFormat argument
5 CONSOLE ERROR: Algorithm: HMAC: HmacImporParams: hash: Missing or not a dictiona ry 4 CONSOLE ERROR: Algorithm: HMAC: HmacImporParams: hash: Missing or not a dictiona ry
6 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation 5 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
7 Tests cypto.subtle.importKey. 6 Tests cypto.subtle.importKey.
8 7
9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
10 9
11 10
(...skipping 19 matching lines...) Expand all
31 PASS key.algorithm.modulusLength is 1024 30 PASS key.algorithm.modulusLength is 1024
32 PASS: key.algorithm.publicExponent should be [010001] and was 31 PASS: key.algorithm.publicExponent should be [010001] and was
33 PASS key.usages.join(',') is '' 32 PASS key.usages.join(',') is ''
34 PASS key.type is 'private' 33 PASS key.type is 'private'
35 PASS key.extractable is false 34 PASS key.extractable is false
36 PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5' 35 PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5'
37 PASS key.algorithm.hash.name is "SHA-1" 36 PASS key.algorithm.hash.name is "SHA-1"
38 PASS key.algorithm.modulusLength is 1024 37 PASS key.algorithm.modulusLength is 1024
39 PASS: key.algorithm.publicExponent should be [010001] and was 38 PASS: key.algorithm.publicExponent should be [010001] and was
40 PASS key.usages.join(',') is '' 39 PASS key.usages.join(',') is ''
41 rejected with null
42 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval id keyData argument. 40 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval id keyData argument.
43 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv alid keyData argument. 41 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv alid keyData argument.
42 PASS crypto.subtle.importKey(keyFormat, data, null, extractable, keyUsages) thre w exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Algorith m: Not an object.
44 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, k eyUsages)' rejected with null 43 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, k eyUsages)' rejected with null
45 PASS: 'crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'] )' rejected with null 44 PASS: 'crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'] )' rejected with null
46 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, [ 'SIGN'])' rejected with null 45 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, [ 'SIGN'])' rejected with null
47 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key Usages)' rejected with null 46 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key Usages)' rejected with null
48 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, ke yUsages)' rejected with null 47 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, ke yUsages)' rejected with null
49 PASS successfullyParsed is true 48 PASS successfullyParsed is true
50 49
51 TEST COMPLETE 50 TEST COMPLETE
52 51
OLDNEW
« no previous file with comments | « LayoutTests/crypto/importKey.html ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698