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

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

Issue 22992006: WebCrypto: Add exception messages for algorithm normalization failures. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use trunc() Created 7 years, 4 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
OLDNEW
1 Tests cypto.subtle.importKey. 1 Tests cypto.subtle.importKey.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS key.type is 'private' 6 PASS key.type is 'private'
7 PASS key.extractable is true 7 PASS key.extractable is true
8 PASS key.algorithm.name is 'HMAC' 8 PASS key.algorithm.name is 'HMAC'
9 PASS key.algorithm.hash.name is 'SHA-256' 9 PASS key.algorithm.hash.name is 'SHA-256'
10 PASS key.usages.join(',') is 'encrypt,sign' 10 PASS key.usages.join(',') is 'encrypt,sign'
(...skipping 11 matching lines...) Expand all
22 PASS key.usages.join(',') is '' 22 PASS key.usages.join(',') is ''
23 PASS key.type is 'public' 23 PASS key.type is 'public'
24 PASS key.extractable is false 24 PASS key.extractable is false
25 PASS key.algorithm.name is 'AES-CBC' 25 PASS key.algorithm.name is 'AES-CBC'
26 PASS key.usages.join(',') is '' 26 PASS key.usages.join(',') is ''
27 rejected with null 27 rejected with null
28 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key Usages) threw exception TypeError: Type error. 28 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key Usages) threw exception TypeError: Type error.
29 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Type error. 29 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Type error.
30 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Type error. 30 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Type error.
31 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Type error. 31 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Type error.
32 PASS crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUs ages) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 32 PASS crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUs ages) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Missing or n ot a dictionary.
33 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyU sages) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 33 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyU sages) threw exception NotSupportedError: Algorithm: SHA-1: Unsupported operatio n.
34 PASS successfullyParsed is true 34 PASS successfullyParsed is true
35 35
36 TEST COMPLETE 36 TEST COMPLETE
37 37
OLDNEW
« no previous file with comments | « LayoutTests/crypto/generateKey-expected.txt ('k') | LayoutTests/crypto/sign-verify-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698