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

Unified Diff: LayoutTests/crypto/wrap-unwrap.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/sign-verify-expected.txt ('k') | LayoutTests/crypto/wrap-unwrap-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/wrap-unwrap.html
diff --git a/LayoutTests/crypto/wrap-unwrap.html b/LayoutTests/crypto/wrap-unwrap.html
index 11901f972279fc3fefad01a54b2815dc8298477b..03e0adec4fe950ba93207c91a11f50e9b1adc37d 100644
--- a/LayoutTests/crypto/wrap-unwrap.html
+++ b/LayoutTests/crypto/wrap-unwrap.html
@@ -29,7 +29,7 @@ importTestKeys().then(function(result) {
// --------------------------------
// Invalid format.
- shouldThrow("crypto.subtle.wrapKey('bad-format', key, wrappingKey, wrapAlgorithm)");
+ shouldRejectPromiseWithNull("crypto.subtle.wrapKey('bad-format', key, wrappingKey, wrapAlgorithm)");
// Invalid key
shouldThrow("crypto.subtle.wrapKey('raw', 1, wrappingKey, wrapAlgorithm)");
@@ -47,7 +47,7 @@ importTestKeys().then(function(result) {
shouldRejectPromiseWithNull("crypto.subtle.wrapKey('raw', key, keys.aesCbcJustDecrypt, wrapAlgorithm)");
// SHA-1 isn't a valid wrapKey algorithm.
- shouldThrow("crypto.subtle.wrapKey('raw', key, wrappingKey, {name: 'SHA-1'})");
+ shouldRejectPromiseWithNull("crypto.subtle.wrapKey('raw', key, wrappingKey, {name: 'SHA-1'})");
// Wrap algorithm doesn't match the wrapping key's algorithm (AES-CBC key
// with AES-CTR wrap algorithm)
@@ -66,7 +66,7 @@ importTestKeys().then(function(result) {
keyUsages = ['encrypt'];
// Invalid format
- shouldThrow("crypto.subtle.unwrapKey('bad-format', wrappedKey, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages)");
+ shouldRejectPromiseWithNull("crypto.subtle.unwrapKey('bad-format', wrappedKey, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages)");
// Invalid wrappedKey
shouldThrow("crypto.subtle.unwrapKey('raw', null, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages)");
@@ -87,7 +87,7 @@ importTestKeys().then(function(result) {
shouldThrow("crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, unwrapAlgorithm, 3, extractable, keyUsages)");
// SHA-1 isn't a valid unwrapKey algorithm.
- shouldThrow("crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, {name: 'SHA-1'}, unwrappedKeyAlgorithm, extractable, keyUsages)");
+ shouldRejectPromiseWithNull("crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, {name: 'SHA-1'}, unwrappedKeyAlgorithm, extractable, keyUsages)");
// Mismatch between the unwrappingKey's algorithm and unwrapAlgorithm.
shouldRejectPromiseWithNull("crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, aesCtrAlgorithm, unwrappedKeyAlgorithm, extractable, keyUsages)");
« no previous file with comments | « LayoutTests/crypto/sign-verify-expected.txt ('k') | LayoutTests/crypto/wrap-unwrap-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698