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

Unified Diff: LayoutTests/crypto/exportKey.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 | « LayoutTests/crypto/digest-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/exportKey.html
diff --git a/LayoutTests/crypto/exportKey.html b/LayoutTests/crypto/exportKey.html
index cebc4eda27baef045083689e1aad57c52d70135b..f5d6a932ea15b1295bbee99b0d820be08e9a051e 100644
--- a/LayoutTests/crypto/exportKey.html
+++ b/LayoutTests/crypto/exportKey.html
@@ -17,9 +17,9 @@ addTask(importTestKeys().then(function(result) {
keys = result;
// Invalid export formats.
- shouldThrow("crypto.subtle.exportKey(3, keys.aesCbcJustDecrypt)");
- shouldThrow("crypto.subtle.exportKey(null, keys.aesCbcJustDecrypt)");
- shouldThrow("crypto.subtle.exportKey('invalid', keys.aesCbcJustDecrypt)");
+ shouldRejectPromiseWithNull("crypto.subtle.exportKey(3, keys.aesCbcJustDecrypt)");
+ shouldRejectPromiseWithNull("crypto.subtle.exportKey(null, keys.aesCbcJustDecrypt)");
+ shouldRejectPromiseWithNull("crypto.subtle.exportKey('invalid', keys.aesCbcJustDecrypt)");
// Invalid keys
shouldThrow("crypto.subtle.exportKey('raw', null)");
« no previous file with comments | « LayoutTests/crypto/digest-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698