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

Unified Diff: LayoutTests/crypto/aes-cbc-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/aes-cbc-parseAlgorithm-failures.html
diff --git a/LayoutTests/crypto/aes-cbc-parseAlgorithm-failures.html b/LayoutTests/crypto/aes-cbc-parseAlgorithm-failures.html
index 4396f831449695a71f031dcd88f131f07b1635c0..fe7e641bce9e8190902701d35d33dbf7c35145a2 100644
--- a/LayoutTests/crypto/aes-cbc-parseAlgorithm-failures.html
+++ b/LayoutTests/crypto/aes-cbc-parseAlgorithm-failures.html
@@ -22,31 +22,32 @@ Promise.resolve(null).then(function(result) {
var extractable = false;
var algorithm = {name: 'aes-cbc'};
+ debug('\nImporting AES-CBC key...');
return crypto.subtle.importKey('raw', keyData, algorithm, extractable, usages);
}).then(function(result) {
key = result;
- // Bad iv
+ debug('\nencrypt() with iv that is null...');
return crypto.subtle.encrypt({name: 'AES-CBC', iv: null}, key, data);
}).then(failAndFinishJSTest, function(result) {
logError(result);
- // Missing iv
+ debug('\nencrypt() without iv...');
return crypto.subtle.decrypt({name: 'AES-CBC'}, key, data);
}).then(failAndFinishJSTest, function(result) {
logError(result);
- // iv is not a buffer
+ debug('\nencrypt() with iv that is a number...');
return crypto.subtle.encrypt({name: 'AES-CBC', iv: 3}, key, data);
}).then(failAndFinishJSTest, function(result) {
logError(result);
- // iv is too short
+ debug('\nencrypt() with an iv containing 0 bytes...');
return crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array(0)}, key, data);
}).then(failAndFinishJSTest, function(result) {
logError(result);
- // iv is longer than expected
+ debug('\nencrypt() with an iv containing 17 bytes...');
return crypto.subtle.encrypt({name: 'AES-CBC', iv: new ArrayBuffer(17)}, key, data);
}).then(failAndFinishJSTest, function(result) {
logError(result);

Powered by Google App Engine
This is Rietveld 408576698