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

Unified Diff: LayoutTests/crypto/hmac-generate-key-expected.txt

Issue 298023002: [webcrypto] Import WebKit's webcrypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove FIXME for unrecognized jwk usages (supported now) Created 6 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/hmac-generate-key.html ('k') | LayoutTests/crypto/hmac-import-jwk.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/hmac-generate-key-expected.txt
diff --git a/LayoutTests/crypto/hmac-generate-key-expected.txt b/LayoutTests/crypto/hmac-generate-key-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..04f243cdfb0ae2709ac13863e391a82ce267f3aa
--- /dev/null
+++ b/LayoutTests/crypto/hmac-generate-key-expected.txt
@@ -0,0 +1,27 @@
+Test generating a HMAC key.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+Generating a key with default length...
+error is: TypeError: Failed to execute 'generateKey' on 'SubtleCrypto': parameter 1 ('algorithm') is not an object.
+error is: SyntaxError: HmacKeyGenParams: hash: Missing or not a dictionary
+error is: SyntaxError: HmacKeyGenParams: length: Is not a number
+error is: SyntaxError: HmacKeyGenParams: length: Is not a number
+PASS key.type is 'secret'
+PASS key.extractable is true
+PASS key.algorithm.name is 'HMAC'
+PASS key.algorithm.length is 512
+PASS key.usages is ["sign", "verify"]
+
+Generating a key with custom length...
+PASS key.type is 'secret'
+PASS key.extractable is true
+PASS key.algorithm.name is 'HMAC'
+PASS key.algorithm.length is 40
+PASS key.usages is ["sign"]
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/hmac-generate-key.html ('k') | LayoutTests/crypto/hmac-import-jwk.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698