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

Unified Diff: LayoutTests/crypto/normalize-algorithm-expected.txt

Issue 18475002: WebCrypto: Add framework for AlgorithmIdentifier normalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename verify --> verifySignature (because "verify" is a macro on Mac) Created 7 years, 6 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/normalize-algorithm.html ('k') | Source/bindings/bindings.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/normalize-algorithm-expected.txt
diff --git a/LayoutTests/crypto/normalize-algorithm-expected.txt b/LayoutTests/crypto/normalize-algorithm-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fedce73531c2ea7f50f24524ef83d4efe68db8ba
--- /dev/null
+++ b/LayoutTests/crypto/normalize-algorithm-expected.txt
@@ -0,0 +1,37 @@
+Tests algorithm normalization.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS algorithm.name is 'SHA-1'
+PASS algorithm.name is 'SHA-256'
+PASS normalizeDigest({}) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest({name: null}) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest({name: -1}) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest({name: ''}) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest({name: 'nosuchalgorithm'}) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest({name: '\u0189'}) threw exception SyntaxError: An invalid or illegal string was specified..
+PASS normalizeDigest(null) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest(0) threw exception TypeError: Not an object..
+PASS normalizeDigest(undefined) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest('') threw exception TypeError: Not an object..
+PASS algorithm.noSuchParam is undefined.
+PASS algorithm.name is 'AES-CBC'
+PASS algorithm.iv.length is 16
+PASS algorithm.iv[3] is 3
+PASS algorithm.iv[3] is 3
+PASS normalizeEncrypt(rawAlgorithm) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS algorithm.name is 'SHA-384'
+PASS algorithm.name is 'SHA-384'
+PASS algorithm.name is 'AES-CBC'
+PASS algorithm.iv.length is 16
+PASS algorithm.iv[1] is 1
+PASS algorithm.name is 'AES-CBC'
+PASS algorithm.iv.length is 16
+PASS algorithm.iv[1] is 1
+PASS normalizeEncrypt({ name: 'SHA-1' }) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS normalizeDigest({ name: 'AES-CBC', iv: originalIv }) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/normalize-algorithm.html ('k') | Source/bindings/bindings.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698