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/rsa-oaep-key-manipulation.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/rsa-export-private-key.html ('k') | Source/modules/crypto/CryptoResultImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/rsa-oaep-key-manipulation.html
diff --git a/LayoutTests/crypto/rsa-oaep-key-manipulation.html b/LayoutTests/crypto/rsa-oaep-key-manipulation.html
index fe9001f9baf30e24c92796a14e1e4b1f69d44bf5..040f86200abad3da09c07c6c52e4e570141f113e 100644
--- a/LayoutTests/crypto/rsa-oaep-key-manipulation.html
+++ b/LayoutTests/crypto/rsa-oaep-key-manipulation.html
@@ -61,8 +61,7 @@ crypto.subtle.generateKey(algorithmKeyGen, extractable, ["encrypt", "decrypt", "
debug("\nExporting public key to JWK...");
return crypto.subtle.exportKey("jwk", keyPair.publicKey);
}).then(function(result) {
- jwkPublicKeyArray = result;
- jwkPublicKey = JSON.parse(bytesToASCIIString(jwkPublicKeyArray));
+ jwkPublicKey = result;
shouldBe("jwkPublicKey.alg", "'RSA-OAEP'");
shouldBe("jwkPublicKey.ext", "true");
shouldBe("jwkPublicKey.key_ops", "['encrypt', 'wrapKey']");
« no previous file with comments | « LayoutTests/crypto/rsa-export-private-key.html ('k') | Source/modules/crypto/CryptoResultImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698