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

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

Issue 770363002: [WebCrypto] Crypto tests updated to use KeyUsage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
Index: LayoutTests/crypto/hmac-export-key.html
diff --git a/LayoutTests/crypto/hmac-export-key.html b/LayoutTests/crypto/hmac-export-key.html
index d7393451eff4652556c473a164eed042db095e47..b0dc1bddfe0db4a044a669fa4b81e96bfdb5e72d 100644
--- a/LayoutTests/crypto/hmac-export-key.html
+++ b/LayoutTests/crypto/hmac-export-key.html
@@ -24,6 +24,7 @@ var jwkKey = {
debug("Importing a JWK key...");
crypto.subtle.importKey("jwk", jwkKey, { name: "HMAC", hash: {name: "SHA-256"} }, extractable, ["sign", "verify"]).then(function(result) {
key = result;
+ console.log(JSON.stringify(result));
return crypto.subtle.exportKey(null, key);
}).then(failAndFinishJSTest, function(result) {
@@ -62,7 +63,7 @@ crypto.subtle.importKey("jwk", jwkKey, { name: "HMAC", hash: {name: "SHA-256"} }
return crypto.subtle.importKey("jwk", jwkKey, { name: "HMAC", hash: {name: "SHA-256"} }, nonExtractable, ["sign", "verify"]);
}, failAndFinishJSTest).then(function(result) {
key = result;
-
+ console.log(JSON.stringify(result));
debug("\nTrying to export as raw...");
return crypto.subtle.exportKey("raw", key);
}).then(function(result) {

Powered by Google App Engine
This is Rietveld 408576698