Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / crypto / importKey-expected.txt
1 CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatted key.
2 CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary
3 Tests cypto.subtle.importKey.
4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6
7
8 PASS key.type is 'secret'
9 PASS key.extractable is true
10 PASS key.algorithm.name is 'HMAC'
11 PASS key.usages.join(',') is 'encrypt,sign'
12 PASS key.type is 'secret'
13 PASS key.extractable is true
14 PASS key.algorithm.name is 'AES-CBC'
15 PASS key.usages.join(',') is ''
16 PASS key.type is 'secret'
17 PASS key.extractable is false
18 PASS key.algorithm.name is 'AES-CBC'
19 PASS key.usages.join(',') is ''
20 rejected with null
21 rejected with null
22 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyFormat argument.
23 PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyUsages argument.
24 PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['SIGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyFormat argument.
25 PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyData argument.
26 PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyData argument.
27 PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyUsages) threw exception NotSupportedError: Failed to execute 'importKey' on 'SubtleCrypto': Algorithm: SHA-1: Unsupported operation.
28 PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUsages)' rejected with null
29 PASS successfullyParsed is true
30
31 TEST COMPLETE
32