| Index: LayoutTests/crypto/hmac-import-jwk.html
|
| diff --git a/LayoutTests/crypto/hmac-import-jwk.html b/LayoutTests/crypto/hmac-import-jwk.html
|
| index 93f7273521fcfccf07c6b6a8691c0539a77c4226..bc990b3c93841eccdb75d272edc191a28064cec1 100644
|
| --- a/LayoutTests/crypto/hmac-import-jwk.html
|
| +++ b/LayoutTests/crypto/hmac-import-jwk.html
|
| @@ -24,10 +24,8 @@ var hmacKey = {
|
| "k": "ahjkn-_387fgnsibf23qsvahjkn-_387fgnsibf23qs"
|
| };
|
|
|
| -var hmacKeyAsArrayBuffer = asciiToUint8Array(JSON.stringify(hmacKey));
|
| -
|
| debug("Importing a key...\n");
|
| -crypto.subtle.importKey("jwk", hmacKeyAsArrayBuffer, {name: "HMAC", hash: {name: "SHA-256"}}, nonExtractable, ["sign", "verify"]).then(function(result) {
|
| +crypto.subtle.importKey("jwk", hmacKey, {name: "HMAC", hash: {name: "SHA-256"}}, nonExtractable, ["sign", "verify"]).then(function(result) {
|
| key = result;
|
|
|
| shouldBe("key.type", "'secret'");
|
|
|