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

Unified Diff: LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures.html

Issue 243853004: [webcrypto] Reject failed operations with a DOMException rather than null. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 6 years, 8 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/aes-cbc-generateKey-parseAlgorithm-failures-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures.html
diff --git a/LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures.html b/LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures.html
index 8e1601bc3ff92d95f3987c0178df8a7288a333a7..ef0b91de105df66862982e4550f0765664494914 100644
--- a/LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures.html
+++ b/LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures.html
@@ -19,40 +19,33 @@ Promise.resolve(null).then(function() {
// Invalid keyUsages
return crypto.subtle.generateKey({ name: 'aes-cbc', length: 1024 }, extractable, -1);
}).then(failAndFinishJSTest, function(result) {
- error = result
- shouldBeTypeError("error");
+ logError(result);
// Invalid keyUsages
return crypto.subtle.generateKey({ name: 'aes-cbc', length: 1024 }, extractable, null);
}).then(failAndFinishJSTest, function(result) {
- error = result
- shouldBeTypeError("error");
+ logError(result);
// Bad key usage "boo".
return crypto.subtle.generateKey({ name: 'aes-cbc', length: 1024 }, extractable, ['boo']);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
return crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
return crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
return crypto.subtle.generateKey({ name: 'aes-cbc', length: -3 }, extractable, keyUsages);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
return crypto.subtle.generateKey({ name: 'aes-cbc', length: -Infinity }, extractable, keyUsages);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
}).then(finishJSTest, failAndFinishJSTest);
</script>
« no previous file with comments | « no previous file | LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698