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

Unified Diff: LayoutTests/crypto/digest.html

Issue 170243007: [webcrypto] Make all of the crypto.subtle method failures asynchronous. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/crypto/digest-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/digest.html
diff --git a/LayoutTests/crypto/digest.html b/LayoutTests/crypto/digest.html
index affc8c87f0cd9518bebca26fb74a0393b84ed9fa..3b9b015f1e4e2356ed73c6b0ce6527016fd4b050 100644
--- a/LayoutTests/crypto/digest.html
+++ b/LayoutTests/crypto/digest.html
@@ -118,9 +118,9 @@ shouldThrow("crypto.subtle.digest({name: 'sha-1'}, 10)");
// Pass invalid algorithmIdentifiers to digest()
data = new Uint8Array([0]);
-shouldThrow("crypto.subtle.digest({name: 'sha'}, data)");
+shouldRejectPromiseWithNull("crypto.subtle.digest({name: 'sha'}, data)");
shouldThrow("crypto.subtle.digest(null, data)");
-shouldThrow("crypto.subtle.digest({}, data)");
+shouldRejectPromiseWithNull("crypto.subtle.digest({}, data)");
completeTestWhenAllTasksDone();
« no previous file with comments | « no previous file | LayoutTests/crypto/digest-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698