Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: LayoutTests/crypto/ecdsa-generate-key.html

Issue 806913006: [WebCrypto] Move LayoutTests from crypto to crypto/subtle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update path for deserialize legacy tests Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/crypto/ecdh-import-jwk-expected.txt ('k') | LayoutTests/crypto/ecdsa-generate-key-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/ecdsa-generate-key.html
diff --git a/LayoutTests/crypto/ecdsa-generate-key.html b/LayoutTests/crypto/ecdsa-generate-key.html
deleted file mode 100644
index 8bf2ff3db5d9514c705ee97553be32a4b8d04069..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/ecdsa-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 ECDSA.");
-
-jsTestIsAsync = true;
-
-var algorithmKeyGen = {
- name: "ecdsa",
- namedCurve: "P-256",
-};
-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", "'ECDSA'");
- shouldBe("keyPair.publicKey.algorithm.namedCurve", "'P-256'");
- shouldBe("keyPair.publicKey.usages", '["verify"]');
- shouldBe("keyPair.privateKey.type", "'private'");
- shouldBe("keyPair.privateKey.algorithm.name", "'ECDSA'");
- shouldBe("keyPair.privateKey.algorithm.namedCurve", "'P-256'");
- 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>
« no previous file with comments | « LayoutTests/crypto/ecdh-import-jwk-expected.txt ('k') | LayoutTests/crypto/ecdsa-generate-key-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698