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

Unified Diff: LayoutTests/crypto/subtle/pbkdf2-deriveBits-failures.html

Issue 957713004: [WebCrypto] Split LayoutTests/crypto/subtle into per-algorithm directories (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 5 years, 10 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-deriveBits-failures.html
diff --git a/LayoutTests/crypto/subtle/pbkdf2-deriveBits-failures.html b/LayoutTests/crypto/subtle/pbkdf2-deriveBits-failures.html
deleted file mode 100644
index 197d34c2e71ebf464909875fa6e750726b73ee88..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/subtle/pbkdf2-deriveBits-failures.html
+++ /dev/null
@@ -1,62 +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("Tests deriveBits() with various bad parameters for PBKDF2");
-
-jsTestIsAsync = true;
-
-var testCase = {
- password: "password",
- salt: "salt",
- c: 1,
- hash: "SHA-1"
- };
-
-function importPbkdf2Key() {
- var key = null;
-
- debug("Importing the password...");
-
- var algorithm = {name: 'PBKDF2'};
-
- var password = asciiToUint8Array(testCase.password);
- var usages = ['deriveBits', 'deriveKey'];
- var extractable = false;
-
- // (1) Import the password
- return crypto.subtle.importKey('raw', password, algorithm, extractable, usages).then(function(result) {
- key = result;
- return key;
- });
-}
-
-var pbkdf2Key = null;
-
-var params = {
- name: 'PBKDF2',
- salt: asciiToUint8Array(testCase.salt),
- iterations: testCase.c,
- hash: {name: testCase.hash}
-};
-importPbkdf2Key().then(function(result) {
- pbkdf2Key = result;
- debug("\nDeriving 100 bits...");
- return crypto.subtle.deriveBits(params, pbkdf2Key, 100);
-}).then(failAndFinishJSTest, function(result) {
- logError(result);
-
- debug("");
-}).then(finishJSTest, failAndFinishJSTest);
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698