Index: LayoutTests/crypto/subtle/rsa-oaep-generateKey-parseAlgorithm-failures.html |
diff --git a/LayoutTests/crypto/subtle/rsa-oaep-generateKey-parseAlgorithm-failures.html b/LayoutTests/crypto/subtle/rsa-oaep-generateKey-parseAlgorithm-failures.html |
deleted file mode 100644 |
index ab18bca7ad2823b410b844bb41cac0ea7bc678ef..0000000000000000000000000000000000000000 |
--- a/LayoutTests/crypto/subtle/rsa-oaep-generateKey-parseAlgorithm-failures.html |
+++ /dev/null |
@@ -1,58 +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 generateKey() with bad RSA-OAEP parameters."); |
-jsTestIsAsync = true; |
- |
-extractable = true; |
-keyUsages = ['encrypt', 'decrypt']; |
- |
-Promise.resolve(null).then(function() { |
- debug("\ngenerateKey() with a modulusLength -30..."); |
- return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: -30}, extractable , keyUsages); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- debug("\ngenerateKey() with modulusLength NaN..."); |
- return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: NaN}, extractable , keyUsages); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- debug("\ngenerateKey() without modulusLength..."); |
- return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}}, extractable, keyUsages); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- debug("\ngenerateKey() without publicExponent..."); |
- return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: 10}, extractable , keyUsages); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- debug("\ngenerateKey() with publicExponent that is an integer..."); |
- return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: 10, publicExponent: 10}, extractable , keyUsages); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- debug("\ngenerateKey() with publicExponent that is null..."); |
- return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: 10, publicExponent: null}, extractable , keyUsages); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
- |
- debug("\ngenerateKey() with invalid hash name..."); |
- return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'NOT-A-HASH'}, modulusLength: 10, publicExponent: new Uint8Array(3)}, extractable , keyUsages); |
-}).then(failAndFinishJSTest, function(result) { |
- logError(result); |
-}).then(finishJSTest, failAndFinishJSTest); |
- |
-</script> |
- |
-</body> |
-</html> |