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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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
« no previous file with comments | « LayoutTests/crypto/exportKey-expected.txt ('k') | LayoutTests/crypto/importKey-expected.txt » ('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 crypto.subtle.generateKey. 1 Tests crypto.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: The 3rd argument is neither an array, nor does it have indexed properties.. 6 PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro r: The 3rd argument is neither an array, nor does it have indexed properties..
7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr ror: The 3rd argument is neither an array, nor does it have indexed properties.. 7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr ror: The 3rd 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: Failed to execute 'generateKey' on 'SubtleCrypto': Invalid keyUsages arg ument.
9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre w exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algori thm: AES-CBC: AesKeyGenParams: length: Missing required property. 9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre w exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algori thm: AES-CBC: AesKeyGenParams: length: Missing required property.
10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'Subtle Crypto': Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range. 10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'Subtle Crypto': 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: Failed to execute 'generateKey' on 'SubtleCry pto': 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: Failed to execute 'generateKey' on 'SubtleCry pto': 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: Failed to execute 'generateKey' on 'Su btleCrypto': Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric ran ge. 12 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractab le, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'Su btleCrypto': Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric ran ge.
13 PASS crypto.subtle.generateKey({ name: 'aes-ctr' }, extractable, keyUsages) thre w exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algori thm: AES-CTR: AesKeyGenParams: length: Missing required property. 13 PASS crypto.subtle.generateKey({ name: 'aes-ctr' }, extractable, keyUsages) thre w exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algori thm: AES-CTR: AesKeyGenParams: length: Missing required property.
14 PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: 70000 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'Subtle Crypto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range. 14 PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: 70000 }, extractable, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'Subtle Crypto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range.
15 PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: -3 }, extractable, key Usages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCry pto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range. 15 PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: -3 }, extractable, key Usages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCry pto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric range.
16 PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: -Infinity }, extractab le, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'Su btleCrypto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric ran ge. 16 PASS crypto.subtle.generateKey({ name: 'aes-ctr', length: -Infinity }, extractab le, keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'Su btleCrypto': Algorithm: AES-CTR: AesKeyGenParams: length: Outside of numeric ran ge.
17 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: - 3}, extractable , keyUsages) threw exception TypeError: Failed to execute 'gener ateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Outside of nu meric range. 17 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: 'sha-256'}, length: - 3}, extractable , keyUsages) threw exception TypeError: Failed to execute 'gener ateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: length: Outside of nu meric range.
18 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, ext ractable , keyUsages) threw exception NotSupportedError: Failed to execute 'gene rateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: hash: Algorithm: Unr ecognized algorithm name. 18 PASS crypto.subtle.generateKey({name: 'hmac', hash: {name: ''}, length: 48}, ext ractable , keyUsages) threw exception NotSupportedError: Failed to execute 'gene rateKey' on 'SubtleCrypto': Algorithm: HMAC: HmacKeyParams: hash: Algorithm: Unr ecognized algorithm name.
(...skipping 15 matching lines...) Expand all
34 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, e xtractable , keyUsages) threw exception TypeError: Failed to execute 'generateKe y' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLengt h: Outside of numeric range. 34 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, e xtractable , keyUsages) threw exception TypeError: Failed to execute 'generateKe y' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLengt h: Outside of numeric range.
35 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, e xtractable , keyUsages) threw exception TypeError: Failed to execute 'generateKe y' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLengt h: Is not a number. 35 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, e xtractable , keyUsages) threw exception TypeError: Failed to execute 'generateKe y' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLengt h: Is not a number.
36 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsag es) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto' : Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Missing required property. 36 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsag es) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto' : Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Missing required property.
37 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, ex tractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey ' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponen t: Missing or not a Uint8Array. 37 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, ex tractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey ' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponen t: Missing or not a Uint8Array.
38 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: 10}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenP arams: publicExponent: Missing or not a Uint8Array. 38 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: 10}, extractable , keyUsages) threw exception TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenP arams: publicExponent: Missing or not a Uint8Array.
39 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: null}, extractable , keyUsages) threw exception TypeError: Failed t o execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGe nParams: publicExponent: Missing or not a Uint8Array. 39 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: null}, extractable , keyUsages) threw exception TypeError: Failed t o execute 'generateKey' on 'SubtleCrypto': Algorithm: RSAES-PKCS1-v1_5: RsaKeyGe nParams: publicExponent: Missing or not a Uint8Array.
40 PASS successfullyParsed is true 40 PASS successfullyParsed is true
41 41
42 TEST COMPLETE 42 TEST COMPLETE
43 43
OLDNEW
« no previous file with comments | « LayoutTests/crypto/exportKey-expected.txt ('k') | LayoutTests/crypto/importKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698