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

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

Issue 38063003: Improve TypeError messages from failed array conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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(aesCbc, extractable, -1) threw exception TypeErro r: Type error. 6 PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro r: Third argument is neither an array, nor does it have indexed properties..
7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr ror: Type error. 7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr ror: Third argument is neither an array, nor does it have indexed properties..
8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ eError: Invalid keyUsages argument. 8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ eError: Invalid keyUsages argument.
9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre w exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Missing requ ired property. 9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre w exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Missing requ ired property.
10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: lengt h: Outside of numeric range. 10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: lengt h: Outside of numeric range.
11 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, key Usages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range. 11 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, key Usages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range.
12 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractab le, keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: l ength: Outside of numeric range. 12 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractab le, keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: l ength: Outside of numeric range.
13 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: - 3}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKey Params: length: Outside of numeric range. 13 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: - 3}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKey Params: length: Outside of numeric range.
14 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, ext ractable , keyUsages) threw exception NotSupportedError: Algorithm: HMAC: HmacKe yParams: hash: Algorithm: Unrecognized algorithm name. 14 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, ext ractable , keyUsages) threw exception NotSupportedError: Algorithm: HMAC: HmacKe yParams: hash: Algorithm: Unrecognized algorithm name.
15 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: 5 000000000}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range. 15 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: 5 000000000}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKeyParams: length: Outside of numeric range.
16 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: N aN}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKe yParams: length: Is not a number. 16 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: N aN}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: HmacKe yParams: length: Is not a number.
17 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: I nfinity}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: H macKeyParams: length: Outside of numeric range. 17 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: I nfinity}, extractable , keyUsages) threw exception TypeError: Algorithm: HMAC: H macKeyParams: length: Outside of numeric range.
(...skipping 12 matching lines...) Expand all
30 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range. 30 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range.
31 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number. 31 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number.
32 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsag es) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: mod ulusLength: Missing required property. 32 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsag es) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: mod ulusLength: Missing required property.
33 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, ex tractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: R saKeyGenParams: publicExponent: Missing or not a Uint8Array. 33 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, ex tractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: R saKeyGenParams: publicExponent: Missing or not a Uint8Array.
34 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: 10}, extractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array. 34 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: 10}, extractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
35 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: null}, extractable , keyUsages) threw exception TypeError: Algorith m: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra y. 35 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: null}, extractable , keyUsages) threw exception TypeError: Algorith m: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra y.
36 PASS successfullyParsed is true 36 PASS successfullyParsed is true
37 37
38 TEST COMPLETE 38 TEST COMPLETE
39 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698