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

Unified Diff: LayoutTests/crypto/digest-failures.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/digest-arraybuffer-expected.txt ('k') | LayoutTests/crypto/digest-failures-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/digest-failures.html
diff --git a/LayoutTests/crypto/digest-failures.html b/LayoutTests/crypto/digest-failures.html
deleted file mode 100644
index d6acaeb07d934778974cda59c85cd713fcdaada3..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/digest-failures.html
+++ /dev/null
@@ -1,54 +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 incorrect calls to crypto.subtle.digest()");
-
-jsTestIsAsync = true;
-
-Promise.resolve(null).then(function(result) {
-
- debug("\ndigest() without data argument...");
- return crypto.subtle.digest({name: 'sha-1'});
-}).then(failAndFinishJSTest, function(result) {
- logError(result);
-
- debug("\ndigest() with data argument that is null...");
- return crypto.subtle.digest({name: 'sha-1'}, null);
-}).then(failAndFinishJSTest, function(result) {
- logError(result);
-
- debug("\ndigest() with data argument that is an integer...");
- return crypto.subtle.digest({name: 'sha-1'}, 10);
-}).then(failAndFinishJSTest, function(result) {
- logError(result);
-
- data = new Uint8Array([0]);
- debug("\ndigest() with algorithm as null...");
- return crypto.subtle.digest(null, data);
-}).then(failAndFinishJSTest, function(result) {
- logError(result);
-
- debug("\ndigest() with invalid agorithm that is sha...");
- return crypto.subtle.digest({name: 'sha'}, data);
-}).then(failAndFinishJSTest, function(result) {
- logError(result);
-
- debug("\ndigest() without algorithm name...");
- return crypto.subtle.digest({}, data);
-}).then(failAndFinishJSTest, function(result) {
- logError(result);
-
-}).then(finishJSTest, failAndFinishJSTest);
-
-</script>
-
-</body>
-</html>
« no previous file with comments | « LayoutTests/crypto/digest-arraybuffer-expected.txt ('k') | LayoutTests/crypto/digest-failures-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698