Index: LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-generate-key.html |
diff --git a/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-generate-key.html b/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-generate-key.html |
deleted file mode 100644 |
index 6a11d15fdae3e87782dff2a6a0ab70cb4b0cb4a8..0000000000000000000000000000000000000000 |
--- a/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-generate-key.html |
+++ /dev/null |
@@ -1,57 +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 RSA key pair for RSASSA-PKCS1-v1_5."); |
- |
-jsTestIsAsync = true; |
- |
-var algorithmKeyGen = { |
- name: "RSASSA-PKCS1-v1_5", |
- hash: {name: "sha-256"}, |
- // RsaKeyGenParams |
- modulusLength: 512, |
- publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // Equivalent to 65537 |
-}; |
-var extractable = true; |
- |
-debug("Generating a key pair..."); |
-crypto.subtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then(function(result) { |
- keyPair = result; |
- shouldBe("keyPair.toString()", "'[object Object]'"); |
- shouldBe("keyPair.publicKey.type", "'public'"); |
- shouldBe("keyPair.publicKey.algorithm.name", "'RSASSA-PKCS1-v1_5'"); |
- shouldBe("keyPair.publicKey.algorithm.hash.name", "'SHA-256'"); |
- shouldBe("keyPair.publicKey.algorithm.modulusLength", "512"); |
- shouldBe("bytesToHexString(keyPair.publicKey.algorithm.publicExponent)", "'010001'"); |
- shouldBe("keyPair.publicKey.usages", '["verify"]'); |
- shouldBe("keyPair.privateKey.type", "'private'"); |
- shouldBe("keyPair.privateKey.algorithm.name", "'RSASSA-PKCS1-v1_5'"); |
- shouldBe("keyPair.privateKey.algorithm.hash.name", "'SHA-256'"); |
- shouldBe("keyPair.privateKey.algorithm.modulusLength", "512"); |
- shouldBe("bytesToHexString(keyPair.privateKey.algorithm.publicExponent)", "'010001'"); |
- shouldBe("keyPair.privateKey.usages", '["sign"]'); |
- |
- 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> |