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 a9b50a09b155979ed2a33ff005c1ec40ad749099..0000000000000000000000000000000000000000 |
--- a/LayoutTests/crypto/digest-failures.html |
+++ /dev/null |
@@ -1,53 +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) { |
- // Called with too few parameters. |
- return crypto.subtle.digest({name: 'sha-1'}); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- // "null" is not a valid data argument. |
- return crypto.subtle.digest({name: 'sha-1'}, null); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- // 10 is not a valid data argument. |
- return crypto.subtle.digest({name: 'sha-1'}, 10); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- // null is not a valid algorithm argument. |
- data = new Uint8Array([0]); |
- return crypto.subtle.digest(null, data); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- // "sha" is not a recognized algorithm name |
- return crypto.subtle.digest({name: 'sha'}, data); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- // Algorithm lacks a name. |
- return crypto.subtle.digest({}, data); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
-}).then(finishJSTest, failAndFinishJSTest); |
- |
-</script> |
- |
-</body> |
-</html> |