| Index: LayoutTests/crypto/importKey.html
|
| diff --git a/LayoutTests/crypto/importKey.html b/LayoutTests/crypto/importKey.html
|
| index 9d6faa8a14af9a9f7a94c2b00929bd441e7590ff..7679c363210f4391885a313464a865991d1b9387 100644
|
| --- a/LayoutTests/crypto/importKey.html
|
| +++ b/LayoutTests/crypto/importKey.html
|
| @@ -91,14 +91,14 @@ Promise.resolve(null).then(function() {
|
| keyUsages = [];
|
|
|
| // Invalid format.
|
| - shouldThrow("crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages)");
|
| + shouldRejectPromiseWithNull("crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages)");
|
|
|
| // Invalid key usage.
|
| - shouldThrow("crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'])");
|
| + shouldRejectPromiseWithNull("crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN'])");
|
|
|
| // If both the format and key usage are bogus, should complain about the
|
| // format first.
|
| - shouldThrow("crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['SIGN'])");
|
| + shouldRejectPromiseWithNull("crypto.subtle.importKey('invalid format', data, algorithm, extractable, ['SIGN'])");
|
|
|
| // Undefined key usage.
|
| // FIXME: http://crbug.com/262383
|
| @@ -112,7 +112,7 @@ Promise.resolve(null).then(function() {
|
| shouldRejectPromiseWithNull("crypto.subtle.importKey(keyFormat, data, {name: 'hmac'}, extractable, keyUsages)");
|
|
|
| // SHA-1 doesn't support the importKey operation.
|
| - shouldThrow("crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyUsages)");
|
| + shouldRejectPromiseWithNull("crypto.subtle.importKey(keyFormat, data, {name: 'sha-1'}, extractable, keyUsages)");
|
| }).then(finishJSTest, failAndFinishJSTest);
|
|
|
| </script>
|
|
|