Index: LayoutTests/crypto/ecdh-generate-key.html |
diff --git a/LayoutTests/crypto/ecdh-generate-key.html b/LayoutTests/crypto/ecdh-generate-key.html |
deleted file mode 100644 |
index 82de0a7f41d8bd470a2ba078942952c5744ab971..0000000000000000000000000000000000000000 |
--- a/LayoutTests/crypto/ecdh-generate-key.html |
+++ /dev/null |
@@ -1,50 +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 generating an EC key pair for ECDH."); |
- |
-jsTestIsAsync = true; |
- |
-var algorithmKeyGen = { |
- name: "ecdh", |
- namedCurve: "P-256", |
-}; |
-var extractable = true; |
- |
-debug("Generating a key pair..."); |
-crypto.subtle.generateKey(algorithmKeyGen, extractable, ["deriveBits"]).then(function(result) { |
- keyPair = result; |
- shouldBe("keyPair.toString()", "'[object Object]'"); |
- shouldBe("keyPair.publicKey.type", "'public'"); |
- shouldBe("keyPair.publicKey.algorithm.name", "'ECDH'"); |
- shouldBe("keyPair.publicKey.algorithm.namedCurve", "'P-256'"); |
- shouldBe("keyPair.publicKey.usages", '[]'); |
- shouldBe("keyPair.privateKey.type", "'private'"); |
- shouldBe("keyPair.privateKey.algorithm.name", "'ECDH'"); |
- shouldBe("keyPair.privateKey.algorithm.namedCurve", "'P-256'"); |
- shouldBe("keyPair.privateKey.usages", '["deriveBits"]'); |
- |
- debug("\nTesting that custom attributes on keys survive garbage collection..."); |
- keyPair.publicKey.foo = "bar"; |
- gc(); |
- setTimeout(function() { |
- gc(); |
- setTimeout(function() { |
- shouldBe("keyPair.publicKey.foo", "'bar'"); |
- finishJSTest(); |
- }, 0); |
- }, 0); |
-}).catch(failAndFinishJSTest); |
- |
-</script> |
- |
-</body> |
-</html> |