Index: LayoutTests/crypto/ecdsa-import-jwk.html |
diff --git a/LayoutTests/crypto/ecdsa-import-jwk.html b/LayoutTests/crypto/ecdsa-import-jwk.html |
deleted file mode 100644 |
index 76b53d185958d83c507bfa43e0ec79978cfb78a5..0000000000000000000000000000000000000000 |
--- a/LayoutTests/crypto/ecdsa-import-jwk.html |
+++ /dev/null |
@@ -1,54 +0,0 @@ |
-<!DOCTYPE html> |
-<html> |
-<head> |
-<script src="../resources/js-test.js"></script> |
-<script src="resources/common.js"></script> |
-</head> |
-<body> |
-<p id="description"></p> |
-<div id="console"></div> |
- |
-<script> |
-description("Test importing an EC public and private key for ECDSA."); |
- |
-jsTestIsAsync = true; |
- |
-var extractable = true; |
- |
-var publicKeyJSON = { |
- "kty": "EC", |
- "crv": "P-256", |
- "x": "nLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKSo1vc", |
- "y": "LVEjOheIkgqG7gihlix576MX-3h54pfa0hRtuZX6HHg" |
-}; |
- |
-var privateKeyJSON = { |
- "kty": "EC", |
- "crv": "P-384", |
- "d": "pJLOj6kAhMIn4aMveXTTnp_2en6HBew0GbNftgdYK-vUYeCxUgrHbsLdTptj665x", |
- "x": "5V_ubEnY1SP1znv5wEJc5P9lBwi33lz7CVkBUjl5p_BCYC2zCFRzU2mBO1w_Xvho", |
- "y": "KPWcxdxQmJKpiNOKjiUZ3j0MT9D72wmT448YUGwXYGxeJCSSRvHOlJg6U2HFvpg-" |
-}; |
- |
-debug("Importing a public key..."); |
-crypto.subtle.importKey("jwk", publicKeyJSON, {name: "ECDSA", namedCurve: "P-256"}, extractable, ["verify"]).then(function(result) { |
- publicKey = result; |
- shouldBe("publicKey.toString()", "'[object CryptoKey]'"); |
- shouldBe("publicKey.type", "'public'"); |
- shouldBe("publicKey.usages", "['verify']"); |
- shouldBe("publicKey.algorithm.name", "'ECDSA'"); |
- shouldBe("publicKey.algorithm.namedCurve", "'P-256'"); |
- debug("\nImporting a private key..."); |
- return crypto.subtle.importKey("jwk", privateKeyJSON, {name: "ECDSA", namedCurve: "P-384"}, extractable, ["sign"]); |
-}).then(function(result) { |
- privateKey = result; |
- shouldBe("privateKey.toString()", "'[object CryptoKey]'"); |
- shouldBe("privateKey.type", "'private'"); |
- shouldBe("privateKey.usages", "['sign']"); |
- shouldBe("privateKey.algorithm.name", "'ECDSA'"); |
- shouldBe("privateKey.algorithm.namedCurve", "'P-384'"); |
-}).then(finishJSTest, failAndFinishJSTest); |
-</script> |
- |
-</body> |
-</html> |