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

Unified Diff: LayoutTests/crypto/aes-cbc-import-jwk.html

Issue 336173002: [webcrypto] Require importKey() for JWK to provide data as a Javascript object rather than a JSON a… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update additional tests 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 | « no previous file | LayoutTests/crypto/aes-cbc-wrap-rsa.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/aes-cbc-import-jwk.html
diff --git a/LayoutTests/crypto/aes-cbc-import-jwk.html b/LayoutTests/crypto/aes-cbc-import-jwk.html
index 3150c1141923c0f4f0aab44811f2692d3fe83f3b..79334d75494800afd153ff2e3274fb384bb17923 100644
--- a/LayoutTests/crypto/aes-cbc-import-jwk.html
+++ b/LayoutTests/crypto/aes-cbc-import-jwk.html
@@ -27,10 +27,8 @@ var jwkKey = {
"k": "YD3rEBXKcb4rc67whX13gR81LAc7YQjXLZgQowkU3_Q"
};
-var jwkKeyAsArrayBuffer = asciiToUint8Array(JSON.stringify(jwkKey));
-
debug("Importing a key...\n");
-crypto.subtle.importKey("jwk", jwkKeyAsArrayBuffer, {name: 'AES-CBC'}, false, ["encrypt"]).then(function(result) {
+crypto.subtle.importKey("jwk", jwkKey, {name: 'AES-CBC'}, false, ["encrypt"]).then(function(result) {
key = result;
shouldBe("key.type", "'secret'");
« no previous file with comments | « no previous file | LayoutTests/crypto/aes-cbc-wrap-rsa.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698