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

Unified Diff: LayoutTests/crypto/hmac-export-key.html

Issue 338993002: [webcrypto] exportKey() now returns dictionary when format='jwk' (CL 2 of 2). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and fix rsa-oaep-key-manipulation.html 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/aes-export-key.html ('k') | LayoutTests/crypto/jwk-export-use-values.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/hmac-export-key.html
diff --git a/LayoutTests/crypto/hmac-export-key.html b/LayoutTests/crypto/hmac-export-key.html
index 36a94a16cceddf9941d1a2a86e69273f0bf429dc..d7393451eff4652556c473a164eed042db095e47 100644
--- a/LayoutTests/crypto/hmac-export-key.html
+++ b/LayoutTests/crypto/hmac-export-key.html
@@ -50,7 +50,7 @@ crypto.subtle.importKey("jwk", jwkKey, { name: "HMAC", hash: {name: "SHA-256"} }
debug("Exporting the key as JWK...");
return crypto.subtle.exportKey("jwk", key);
}).then(function(result) {
- exportedJWK = JSON.parse(bytesToASCIIString(result));
+ exportedJWK = result;
shouldBe("exportedJWK.kty", "'oct'");
shouldBe("exportedJWK.k", "'ahjkn-_387fgnsibf23qsvahjkn-_387fgnsibf23qs'");
shouldBe("exportedJWK.alg", "'HS256'");
« no previous file with comments | « LayoutTests/crypto/aes-export-key.html ('k') | LayoutTests/crypto/jwk-export-use-values.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698