Index: LayoutTests/crypto/digest-failures.html |
diff --git a/LayoutTests/crypto/digest-failures.html b/LayoutTests/crypto/digest-failures.html |
index a9b50a09b155979ed2a33ff005c1ec40ad749099..7d8415bfca74c836c9dd030c1d521207fb3e1e18 100644 |
--- a/LayoutTests/crypto/digest-failures.html |
+++ b/LayoutTests/crypto/digest-failures.html |
@@ -15,32 +15,38 @@ jsTestIsAsync = true; |
Promise.resolve(null).then(function(result) { |
// Called with too few parameters. |
eroman
2014/12/12 19:37:02
Throughout this change, please remove these sort o
Paritosh Kumar
2014/12/15 08:21:27
Done.
|
+ debug("\ndigest() without data argument..."); |
return crypto.subtle.digest({name: 'sha-1'}); |
}).then(failAndFinishJSTest, function(result) { |
logError(result); |
// "null" is not a valid data argument. |
+ debug("\ndigest() with data argument that is null..."); |
return crypto.subtle.digest({name: 'sha-1'}, null); |
}).then(failAndFinishJSTest, function(result) { |
logError(result); |
// 10 is not a valid data argument. |
+ debug("\ndigest() with data argument that is an integer..."); |
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]); |
+ debug("\ndigest() with algorithm as null..."); |
return crypto.subtle.digest(null, data); |
}).then(failAndFinishJSTest, function(result) { |
logError(result); |
// "sha" is not a recognized algorithm name |
+ debug("\ndigest() with invalid agorithm that is sha..."); |
return crypto.subtle.digest({name: 'sha'}, data); |
}).then(failAndFinishJSTest, function(result) { |
logError(result); |
// Algorithm lacks a name. |
+ debug("\ndigest() without algorithm name..."); |
return crypto.subtle.digest({}, data); |
}).then(failAndFinishJSTest, function(result) { |
logError(result); |