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

Unified Diff: LayoutTests/crypto/jwk-export-use-values.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/hmac-export-key.html ('k') | LayoutTests/crypto/rsa-export-key.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/jwk-export-use-values.html
diff --git a/LayoutTests/crypto/jwk-export-use-values.html b/LayoutTests/crypto/jwk-export-use-values.html
index 9072fddc5be39ca197dc7d71b806090147ce7e08..c5e4354c556d7ccd10687dc2ccb5efc08f9ba584 100644
--- a/LayoutTests/crypto/jwk-export-use-values.html
+++ b/LayoutTests/crypto/jwk-export-use-values.html
@@ -23,7 +23,7 @@ function testWithAESCBC(usages, expectedKeyOps)
return crypto.subtle.importKey("raw", aesKeyAsArrayBuffer, {name: "AES-CBC"}, extractable, usages).then(function(result) {
return crypto.subtle.exportKey("jwk", result);
}).then(function(result) {
- jwk = JSON.parse(bytesToASCIIString(result));
+ jwk = result;
debug(usages + ":");
shouldBe("jwk.use", "undefined");
shouldBe("jwk.key_ops", JSON.stringify(expectedKeyOps));
@@ -36,7 +36,7 @@ function testWithHMAC(usages, expectedKeyOps)
return crypto.subtle.importKey("raw", hmacKeyAsArrayBuffer, {name: 'hmac', hash: {name: 'sha-256'}}, extractable, usages).then(function(result) {
return crypto.subtle.exportKey("jwk", result);
}).then(function(result) {
- jwk = JSON.parse(bytesToASCIIString(result));
+ jwk = result;
debug(usages + ":");
shouldBe("jwk.use", "undefined");
shouldBe("jwk.key_ops", JSON.stringify(expectedKeyOps));
« no previous file with comments | « LayoutTests/crypto/hmac-export-key.html ('k') | LayoutTests/crypto/rsa-export-key.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698