Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / crypto / importKey-expected.txt
index 19ca012..fa31af8 100644 (file)
@@ -1,3 +1,5 @@
+CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatted key.
+CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary
 Tests cypto.subtle.importKey.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -6,7 +8,6 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 PASS key.type is 'secret'
 PASS key.extractable is true
 PASS key.algorithm.name is 'HMAC'
-PASS key.algorithm.hash.name is 'SHA-256'
 PASS key.usages.join(',') is 'encrypt,sign'
 PASS key.type is 'secret'
 PASS key.extractable is true
@@ -18,13 +19,13 @@ PASS key.algorithm.name is 'AES-CBC'
 PASS key.usages.join(',') is ''
 rejected with null
 rejected with null
-PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages) threw exception TypeError: Invalid keyFormat argument.
-PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Invalid keyUsages argument.
-PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['SIGN']) threw exception TypeError: Invalid keyFormat argument.
-PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) threw exception TypeError: Invalid keyData argument.
-PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Invalid keyData argument.
-PASS crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUsages) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary.
-PASS crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyUsages) threw exception NotSupportedError: Algorithm: SHA-1: Unsupported operation.
+PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyFormat argument.
+PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyUsages argument.
+PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['SIGN']) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyFormat argument.
+PASS crypto.subtle.importKey(keyFormat, [], algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyData argument.
+PASS crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages) threw exception TypeError: Failed to execute 'importKey' on 'SubtleCrypto': Invalid keyData argument.
+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.
+PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUsages)' rejected with null
 PASS successfullyParsed is true
 
 TEST COMPLETE