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

Unified Diff: LayoutTests/crypto/digest-failures.html

Issue 240063002: [webcrypto] Update layout tests to match idl generator changes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/digest-failures.html
diff --git a/LayoutTests/crypto/digest-failures.html b/LayoutTests/crypto/digest-failures.html
index c760cd06c4801c21731b3f94134f27ad6078d320..954e70010212d1f83f06a91f385316a358cc94a9 100644
--- a/LayoutTests/crypto/digest-failures.html
+++ b/LayoutTests/crypto/digest-failures.html
@@ -13,10 +13,13 @@ description("Tests incorrect calls to crypto.subtle.digest()");
jsTestIsAsync = true;
-// Called with too few parameters.
-shouldThrow("crypto.subtle.digest({name: 'sha-1'})");
-
Promise.resolve(null).then(function(result) {
+ // Called with too few parameters.
+ return crypto.subtle.digest({name: 'sha-1'});
+}).then(failAndFinishJSTest, function(result) {
+ error = result;
+ shouldBeTypeError("error");
+
// "null" is not a valid data argument.
return crypto.subtle.digest({name: 'sha-1'}, null);
}).then(failAndFinishJSTest, function(result) {

Powered by Google App Engine
This is Rietveld 408576698