| 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));
|
|
|