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

Unified Diff: LayoutTests/crypto/importKey-expected.txt

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase yet again (another conflict) Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/crypto/importKey.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/importKey-expected.txt
diff --git a/LayoutTests/crypto/importKey-expected.txt b/LayoutTests/crypto/importKey-expected.txt
index ae56423da7e34ed8bf914a0838d4a3b1624f9aa6..621c2a2b7f81c4962d15ddca70fbcaa6cd24e815 100644
--- a/LayoutTests/crypto/importKey-expected.txt
+++ b/LayoutTests/crypto/importKey-expected.txt
@@ -2,7 +2,7 @@ CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatte
CONSOLE ERROR: Invalid keyFormat argument
CONSOLE ERROR: Invalid keyUsages argument
CONSOLE ERROR: Invalid keyFormat argument
-CONSOLE ERROR: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary
+CONSOLE ERROR: Algorithm: HMAC: HmacImporParams: hash: Missing or not a dictionary
CONSOLE ERROR: Algorithm: SHA-1: Unsupported operation
Tests cypto.subtle.importKey.
@@ -12,16 +12,32 @@ 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
PASS key.algorithm.name is 'AES-CBC'
+PASS key.algorithm.length is 128
PASS key.usages.join(',') is ''
PASS key.type is 'secret'
PASS key.extractable is false
PASS key.algorithm.name is 'AES-CBC'
+PASS key.algorithm.length is 128
PASS key.usages.join(',') is ''
rejected with null
+PASS key.type is 'public'
+PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5'
+PASS key.algorithm.hash.name is "SHA-1"
+PASS key.algorithm.modulusLength is 1024
+PASS: key.algorithm.publicExponent should be [010001] and was
+PASS key.usages.join(',') is ''
+PASS key.type is 'private'
+PASS key.extractable is false
+PASS key.algorithm.name is 'RSASSA-PKCS1-v1_5'
+PASS key.algorithm.hash.name is "SHA-1"
+PASS key.algorithm.modulusLength is 1024
+PASS: key.algorithm.publicExponent should be [010001] and was
+PASS key.usages.join(',') is ''
rejected with null
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.
« no previous file with comments | « LayoutTests/crypto/importKey.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698