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

Unified Diff: LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5/cloneKey.html

Issue 958353003: [WebCrypto] Move cloneKey test to respective algorithm directory (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months 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
Index: LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5/cloneKey.html
diff --git a/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5/cloneKey.html b/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5/cloneKey.html
new file mode 100644
index 0000000000000000000000000000000000000000..4b3b4c91989e2af1e325da0e8eb475d2d3240a4a
--- /dev/null
+++ b/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5/cloneKey.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script src="../resources/common.js"></script>
+<script src="../resources/rsa-cloneKey.js"></script>
+<script src="../resources/keys.js"></script>
+</head>
+<body>
+<script>
+description('Tests structured cloning of RSASSA-PKCS1-v1_5 keys');
+
+jsTestIsAsync = true;
+
+function testClonePublicKeys()
+{
+ return testCloneRSAPublicKeys('RSASSA-PKCS1-v1_5', [[], ['verify']], [kKeyData.rsa2, kKeyData.rsa3]);
+}
+
+function testClonePrivateKeys()
+{
+ return testCloneRSAPrivateKeys('RSASSA-PKCS1-v1_5', [['sign']], [kKeyData.rsa1, kKeyData.rsa4]);
+}
+
+testClonePublicKeys().then(testClonePrivateKeys).then(finishJSTest, failAndFinishJSTest)
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698