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

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

Issue 24467004: [webcrypto] Remove MockWebCrypto. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 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/resources/common.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'secret'
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'
11 PASS key.type is 'private' 11 PASS key.type is 'secret'
12 PASS key.extractable is true 12 PASS key.extractable is true
13 PASS key.algorithm.name is 'AES-CBC' 13 PASS key.algorithm.name is 'AES-CBC'
14 PASS key.usages.join(',') is '' 14 PASS key.usages.join(',') is ''
15 PASS key.type is 'private' 15 PASS key.type is 'secret'
16 PASS key.extractable is false 16 PASS key.extractable is false
17 PASS key.algorithm.name is 'AES-CBC' 17 PASS key.algorithm.name is 'AES-CBC'
18 PASS key.usages.join(',') is '' 18 PASS key.usages.join(',') is ''
19 PASS key.type is 'public' 19 PASS key.type is 'secret'
20 PASS key.extractable is false 20 PASS key.extractable is false
21 PASS key.algorithm.name is 'AES-CBC' 21 PASS key.algorithm.name is 'AES-CBC'
22 PASS key.usages.join(',') is '' 22 PASS key.usages.join(',') is ''
23 PASS key.type is 'public'
24 PASS key.extractable is false
25 PASS key.algorithm.name is 'AES-CBC'
26 PASS key.usages.join(',') is ''
27 rejected with null 23 rejected with null
28 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key Usages) threw exception TypeError: Invalid keyFormat argument. 24 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, key Usages) threw exception TypeError: Invalid keyFormat argument.
29 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Invalid keyUsages argument. 25 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Invalid keyUsages argument.
30 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['S IGN']) threw exception TypeError: Invalid keyFormat argument. 26 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['S IGN']) threw exception TypeError: Invalid keyFormat argument.
31 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Invalid keyData argument. 27 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) t hrew exception TypeError: Invalid keyData argument.
32 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Invalid keyData argument. 28 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Invalid keyData argument.
33 PASS crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUs ages) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Missing or n ot a dictionary. 29 PASS crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUs ages) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Missing or n ot a dictionary.
34 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyU sages) threw exception NotSupportedError: Algorithm: SHA-1: Unsupported operatio n. 30 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyU sages) threw exception NotSupportedError: Algorithm: SHA-1: Unsupported operatio n.
35 PASS successfullyParsed is true 31 PASS successfullyParsed is true
36 32
37 TEST COMPLETE 33 TEST COMPLETE
38 34
OLDNEW
« no previous file with comments | « LayoutTests/crypto/importKey.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698