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

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

Issue 23126008: WebCrypto: refactor layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « LayoutTests/crypto/generateKey.html ('k') | LayoutTests/crypto/importKey.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 Tests cypto.subtle.generateKey. 1 Tests cypto.subtle.generateKey.
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 crypto.subtle.generateKey(invalidAesKeyGen, extractable, keyUsages) threw e xception NotSupportedError: The implementation did not support the requested typ e of object or operation..
7 PASS crypto.subtle.generateKey(invalidAesKeyGen, extractable, keyUsages) threw e xception NotSupportedError: The implementation did not support the requested typ e of object or operation..
8 PASS crypto.subtle.generateKey(invalidAesKeyGen, extractable, keyUsages) threw e xception NotSupportedError: The implementation did not support the requested typ e of object or operation..
9 PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro r: Type error. 6 PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro r: Type error.
10 PASS crypto.subtle.generateKey(invalidHmac256, false, ['sign']) threw exception NotSupportedError: The implementation did not support the requested type of obje ct or operation.. 7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr ror: Type error.
8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ eError: Type error.
9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre w exception NotSupportedError: The implementation did not support the requested type of object or operation..
10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
11 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, key Usages) threw exception NotSupportedError: The implementation did not support th e requested type of object or operation..
12 FAIL crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractab le, keyUsages) should throw an exception. Was [object Promise].
13 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: - 3}, extractable , keyUsages) threw exception NotSupportedError: The implementati on did not support the requested type of object or operation..
14 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, ext ractable , keyUsages) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
15 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: 5 000000000}, extractable , keyUsages) should throw an exception. Was [object Prom ise].
16 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: N aN}, extractable , keyUsages) should throw an exception. Was [object Promise].
17 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: - NaN}, extractable , keyUsages) should throw an exception. Was [object Promise].
18 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: I nfinity}, extractable , keyUsages) should throw an exception. Was [object Promis e].
19 FAIL crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: - Infinity}, extractable , keyUsages) should throw an exception. Was [object Promi se].
20 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: -30}, extractable , keyUsages) threw exception NotSupportedError: The implementation d id not support the requested type of object or operation..
21 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: NaN}, extractable , keyUsages) threw exception NotSupportedError: The implementation d id not support the requested type of object or operation..
22 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsa ges) threw exception NotSupportedError: The implementation did not support the r equested type of object or operation..
23 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10}, e xtractable , keyUsages) threw exception NotSupportedError: The implementation di d not support the requested type of object or operation..
24 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu blicExponent: 10}, extractable , keyUsages) threw exception NotSupportedError: T he implementation did not support the requested type of object or operation..
25 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu blicExponent: null}, extractable , keyUsages) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
11 PASS key.type is 'private' 26 PASS key.type is 'private'
12 PASS key.extractable is true 27 PASS key.extractable is true
13 PASS key.algorithm.name is 'AES-CBC' 28 PASS key.algorithm.name is 'AES-CBC'
14 PASS key.algorithm.length is 1024 29 PASS key.algorithm.length is 1024
15 PASS key.usages.join(',') is 'encrypt,decrypt' 30 PASS key.usages.join(',') is 'encrypt,decrypt'
16 PASS key.type is 'private' 31 PASS key.type is 'private'
17 PASS key.extractable is false 32 PASS key.extractable is false
18 PASS key.algorithm.name is 'HMAC' 33 PASS key.algorithm.name is 'HMAC'
19 PASS key.algorithm.hash.name is 'SHA-256' 34 PASS key.algorithm.hash.name is 'SHA-256'
20 PASS key.algorithm.length is null 35 PASS key.algorithm.length is null
21 PASS key.usages.join(',') is 'sign' 36 PASS key.usages.join(',') is 'sign'
22 PASS key.type is 'private' 37 PASS key.type is 'private'
23 PASS key.extractable is false 38 PASS key.extractable is false
24 PASS key.algorithm.name is 'HMAC' 39 PASS key.algorithm.name is 'HMAC'
25 PASS key.algorithm.hash.name is 'SHA-256' 40 PASS key.algorithm.hash.name is 'SHA-256'
26 PASS key.algorithm.length is 48 41 PASS key.algorithm.length is 48
27 PASS key.usages.join(',') is 'sign' 42 PASS key.usages.join(',') is 'sign'
28 PASS successfullyParsed is true 43 PASS successfullyParsed is true
29 44
30 TEST COMPLETE 45 TEST COMPLETE
31 46
OLDNEW
« no previous file with comments | « LayoutTests/crypto/generateKey.html ('k') | LayoutTests/crypto/importKey.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698