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

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

Issue 170243007: [webcrypto] Make all of the crypto.subtle method failures asynchronous. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/sign-verify.html » ('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 fa31af8ab54203d38f680cc26f0b956368793758..ae56423da7e34ed8bf914a0838d4a3b1624f9aa6 100644
--- a/LayoutTests/crypto/importKey-expected.txt
+++ b/LayoutTests/crypto/importKey-expected.txt
@@ -1,5 +1,9 @@
CONSOLE ERROR: The key's algorithm must be specified when importing raw-formatted key.
+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: SHA-1: Unsupported operation
Tests cypto.subtle.importKey.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -19,13 +23,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: 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('invalid format', data, algorithm, extractable, keyUsages)' rejected with null
+PASS: 'crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'])' rejected with null
+PASS: 'crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['SIGN'])' rejected with null
PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUsages)' rejected with null
+PASS: 'crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyUsages)' rejected with null
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/crypto/importKey.html ('k') | LayoutTests/crypto/sign-verify.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698