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

Unified Diff: LayoutTests/crypto/digest-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 | « no previous file | LayoutTests/crypto/encrypt-decrypt-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/digest-expected.txt
diff --git a/LayoutTests/crypto/digest-expected.txt b/LayoutTests/crypto/digest-expected.txt
index a7c7abe57f1346992dd63808e79ac2820ccce6e0..78a3b8d6703fd5160bb74753e2357dc26c37c913 100644
--- a/LayoutTests/crypto/digest-expected.txt
+++ b/LayoutTests/crypto/digest-expected.txt
@@ -14,9 +14,9 @@ Error (dummy implementation rejects this input)
PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Not enough arguments.
PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Type error.
PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Type error.
-PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.digest(null, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS crypto.subtle.digest({}, data) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError: Algorithm: Unrecognized algorithm name.
+PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object.
+PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string.
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « no previous file | LayoutTests/crypto/encrypt-decrypt-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698