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

Unified Diff: LayoutTests/crypto/subtle/pbkdf2/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/pbkdf2/cloneKey.html
diff --git a/LayoutTests/crypto/subtle/pbkdf2/cloneKey.html b/LayoutTests/crypto/subtle/pbkdf2/cloneKey.html
new file mode 100644
index 0000000000000000000000000000000000000000..f7b703ef1eda9bb060f0f5a5e736403c5be050db
--- /dev/null
+++ b/LayoutTests/crypto/subtle/pbkdf2/cloneKey.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script src="../resources/common.js"></script>
+<script src="../resources/symmetric-cloneKey.js"></script>
+</head>
+<body>
+<script>
+description("Tests structured cloning of PBKDF2 keys");
+
+jsTestIsAsync = true;
+
+var kEmptyData = "";
+var k8BitData = "30";
+var k64BitData = "0011223344554677";
+var k88BitData = "00112233445546778899aa";
+var k128BitData = "30112233445566778899aabbccddeeff";
+
+var kPossibleHashAlgorithms = ['SHA-1', 'SHA-256', 'SHA-512'];
+var kPossibleExtractable = [false];
+var kPossibleKeyUsage = [['deriveBits'], ['deriveKey'], ['deriveKey', 'deriveBits']]
+var kKeyData = [kEmptyData, k8BitData, k64BitData, k88BitData, k128BitData];
+var kKeyHasLength = false;
+
+testCloneSymmetricKeys('PBKDF2', kPossibleHashAlgorithms, kPossibleExtractable, kPossibleKeyUsage, kKeyData, kKeyHasLength).then(finishJSTest, failAndFinishJSTest);
+
+</script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/crypto/subtle/hmac/cloneKey-expected.txt ('k') | LayoutTests/crypto/subtle/pbkdf2/cloneKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698