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

Unified Diff: LayoutTests/crypto/rsa-oaep-generateKey-parseAlgorithm-failures.html

Issue 801793003: Improve LayoutTest output for Errors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
Index: LayoutTests/crypto/rsa-oaep-generateKey-parseAlgorithm-failures.html
diff --git a/LayoutTests/crypto/rsa-oaep-generateKey-parseAlgorithm-failures.html b/LayoutTests/crypto/rsa-oaep-generateKey-parseAlgorithm-failures.html
index e6a345c5749c4c12c3909edca90a7d4678d9ebe9..00ad2d97efb23604515844f171e7deb93cf0cab0 100644
--- a/LayoutTests/crypto/rsa-oaep-generateKey-parseAlgorithm-failures.html
+++ b/LayoutTests/crypto/rsa-oaep-generateKey-parseAlgorithm-failures.html
@@ -16,30 +16,37 @@ extractable = true;
keyUsages = ['encrypt', 'decrypt'];
Promise.resolve(null).then(function() {
+ debug("\ngenerateKey() with a modulusLength -30...");
return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: -30}, extractable , keyUsages);
}).then(failAndFinishJSTest, function(result) {
logError(result);
+ debug("\ngenerateKey() with modulusLength NaN...");
return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: NaN}, extractable , keyUsages);
}).then(failAndFinishJSTest, function(result) {
logError(result);
+ debug("\ngenerateKey() without modulusLength...");
return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}}, extractable, keyUsages);
}).then(failAndFinishJSTest, function(result) {
logError(result);
+ debug("\ngenerateKey() without publicExponent...");
return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: 10}, extractable , keyUsages);
}).then(failAndFinishJSTest, function(result) {
logError(result);
+ debug("\ngenerateKey() with publicExponent that is an integer...");
return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: 10, publicExponent: 10}, extractable , keyUsages);
}).then(failAndFinishJSTest, function(result) {
logError(result);
+ debug("\ngenerateKey() with publicExponent that is null...");
return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'sha-1'}, modulusLength: 10, publicExponent: null}, extractable , keyUsages);
}).then(failAndFinishJSTest, function(result) {
logError(result);
+ debug("\ngenerateKey() with invalid hash name...");
return crypto.subtle.generateKey({name: 'RSA-OAEP', hash: {name: 'NOT-A-HASH'}, modulusLength: 10, publicExponent: new Uint8Array(3)}, extractable , keyUsages);
}).then(failAndFinishJSTest, function(result) {
logError(result);

Powered by Google App Engine
This is Rietveld 408576698