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

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

Issue 595873003: [webcrypto] Interpret empty BigInteger as 0 according to the spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move tests Created 6 years, 2 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
Index: LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures.html
diff --git a/LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures.html b/LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures.html
index 189a61805be29ad6506baf0e2f9f5f17106135f1..903b60827882ddab2ddf6a105582c544886dd947 100644
--- a/LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures.html
+++ b/LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures.html
@@ -40,6 +40,14 @@ Promise.resolve(null).then(function() {
}).then(failAndFinishJSTest, function(result) {
logError(result);
+ return crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-1'}, modulusLength: 10, publicExponent: new Uint8Array(0)}, extractable , keyUsages);
+}).then(failAndFinishJSTest, function(result) {
+ logError(result);
+
+ return crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', hash: {name: 'sha-1'}, modulusLength: 1024, publicExponent: new Uint8Array(0)}, extractable , keyUsages);
+}).then(failAndFinishJSTest, function(result) {
+ logError(result);
+
return crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', 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