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

Unified Diff: LayoutTests/crypto/sign-verify-expected.txt

Issue 22992006: WebCrypto: Add exception messages for algorithm normalization failures. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use trunc() Created 7 years, 4 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-expected.txt ('k') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/sign-verify-expected.txt
diff --git a/LayoutTests/crypto/sign-verify-expected.txt b/LayoutTests/crypto/sign-verify-expected.txt
index 45977885714526aad3dcdeade0f5dc1c74f35148..82a35cc101a961cf663575d0043156fedcae945c 100644
--- a/LayoutTests/crypto/sign-verify-expected.txt
+++ b/LayoutTests/crypto/sign-verify-expected.txt
@@ -6,20 +6,20 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, null, data) threw exception TypeError: Type error.
PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, 'a', data) threw exception TypeError: Type error.
PASS crypto.subtle.verify(hmacSha1, keys.hmacSha1, [], data) threw exception TypeError: Type error.
-PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS crypto.subtle.sign({name: 'sha-1'}, keys.hmacSha1, data) threw exception NotSupportedError: Algorithm: SHA-1: Unsupported operation.
PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'sha-256'}}, keys.hmacSha1, data) threw exception NotSupportedError: key.algorithm does not match that of operation (HMAC's hash differs).
-PASS crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5'}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: 3}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: null}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {}}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'foo'}}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'AES-CBC'}}, keys.rsaSsaSha1, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS crypto.subtle.sign({name: 'hmac'}, keys.hmacSha1, data) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Missing or not a dictionary.
+PASS crypto.subtle.sign({name: 'hmac', hash: 3}, keys.hmacSha1, data) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object.
+PASS crypto.subtle.sign({name: 'hmac', hash: null}, keys.hmacSha1, data) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: Not an object.
+PASS crypto.subtle.sign({name: 'hmac', hash: {}}, keys.hmacSha1, data) threw exception TypeError: Algorithm: HMAC: HmacParams: hash: Algorithm: name: Missing or not a string.
+PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'foo'}}, keys.hmacSha1, data) threw exception NotSupportedError: Algorithm: HMAC: HmacParams: hash: Algorithm: Unrecognized algorithm name.
+PASS crypto.subtle.sign({name: 'hmac', hash: {name: 'AES-CBC'}}, keys.hmacSha1, data) threw exception NotSupportedError: Algorithm: HMAC: HmacParams: hash: Algorithm: AES-CBC: Unsupported operation.
+PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5'}, keys.rsaSsaSha1, data) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaSSaParams: hash: Missing or not a dictionary.
+PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: 3}, keys.rsaSsaSha1, data) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaSSaParams: hash: Algorithm: Not an object.
+PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: null}, keys.rsaSsaSha1, data) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaSSaParams: hash: Algorithm: Not an object.
+PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {}}, keys.rsaSsaSha1, data) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaSSaParams: hash: Algorithm: name: Missing or not a string.
+PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'foo'}}, keys.rsaSsaSha1, data) threw exception NotSupportedError: Algorithm: RSASSA-PKCS1-v1_5: RsaSSaParams: hash: Algorithm: Unrecognized algorithm name.
+PASS crypto.subtle.sign({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'AES-CBC'}}, keys.rsaSsaSha1, data) threw exception NotSupportedError: Algorithm: RSASSA-PKCS1-v1_5: RsaSSaParams: hash: Algorithm: AES-CBC: Unsupported operation.
PASS signResult.byteLength is 17
PASS verifyResult is true
PASS verifyResult is false
« no previous file with comments | « LayoutTests/crypto/importKey-expected.txt ('k') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698