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

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

Issue 170243007: [webcrypto] Make all of the crypto.subtle method failures asynchronous. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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') | LayoutTests/crypto/sign-verify.html » ('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. 1 CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatte d key.
2 CONSOLE ERROR: Invalid keyFormat argument
3 CONSOLE ERROR: Invalid keyUsages argument
4 CONSOLE ERROR: Invalid keyFormat argument
2 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary 5 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary
6 CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
3 Tests cypto.subtle.importKey. 7 Tests cypto.subtle.importKey.
4 8
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6 10
7 11
8 PASS key.type is 'secret' 12 PASS key.type is 'secret'
9 PASS key.extractable is true 13 PASS key.extractable is true
10 PASS key.algorithm.name is 'HMAC' 14 PASS key.algorithm.name is 'HMAC'
11 PASS key.usages.join(',') is 'encrypt,sign' 15 PASS key.usages.join(',') is 'encrypt,sign'
12 PASS key.type is 'secret' 16 PASS key.type is 'secret'
13 PASS key.extractable is true 17 PASS key.extractable is true
14 PASS key.algorithm.name is 'AES-CBC' 18 PASS key.algorithm.name is 'AES-CBC'
15 PASS key.usages.join(',') is '' 19 PASS key.usages.join(',') is ''
16 PASS key.type is 'secret' 20 PASS key.type is 'secret'
17 PASS key.extractable is false 21 PASS key.extractable is false
18 PASS key.algorithm.name is 'AES-CBC' 22 PASS key.algorithm.name is 'AES-CBC'
19 PASS key.usages.join(',') is '' 23 PASS key.usages.join(',') is ''
20 rejected with null 24 rejected with null
21 rejected with null 25 rejected with null
22 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key Usages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypt o': Invalid keyFormat argument.
23 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inva lid keyUsages argument.
24 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['S IGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto ': Invalid keyFormat argument.
25 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval id keyData argument. 26 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inval id keyData argument.
26 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv alid keyData argument. 27 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Inv alid keyData argument.
27 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyU sages) threw exception NotSupportedError: Failed to execute 'importKey' on 'Subt leCrypto': Algorithm: SHA-1: Unsupported operation. 28 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, k eyUsages)' rejected with null
29 PASS: 'crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'] )' rejected with null
30 PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, [ 'SIGN'])' rejected with null
28 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key Usages)' rejected with null 31 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, key Usages)' rejected with null
32 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, ke yUsages)' rejected with null
29 PASS successfullyParsed is true 33 PASS successfullyParsed is true
30 34
31 TEST COMPLETE 35 TEST COMPLETE
32 36
OLDNEW
« no previous file with comments | « LayoutTests/crypto/importKey.html ('k') | LayoutTests/crypto/sign-verify.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698