| 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)");
|
|
|