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

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

Issue 215153005: [refactor] Split up generateKey.html into multiple files, and test errors directly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Re-upload with --similarity=20 Created 6 years, 9 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/aes-cbc-generateKey-parseAlgorithm-failures-expected.txt
diff --git a/LayoutTests/crypto/aes-gcm-parseAlgorithm-failures-expected.txt b/LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures-expected.txt
similarity index 26%
copy from LayoutTests/crypto/aes-gcm-parseAlgorithm-failures-expected.txt
copy to LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures-expected.txt
index 7f8b22731446a0e4c5ab145b5614555f10ad1e80..f02e896cc63826140fd91e0a5b2fa6b6d56f2ba0 100644
--- a/LayoutTests/crypto/aes-gcm-parseAlgorithm-failures-expected.txt
+++ b/LayoutTests/crypto/aes-cbc-generateKey-parseAlgorithm-failures-expected.txt
@@ -1,17 +1,15 @@
-CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: iv: Missing required property
-CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: iv: Not an ArrayBufferView
-CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: iv: Not an ArrayBufferView
-CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: additionalData: Not an ArrayBufferView
-CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: tagLength: Is not a number
-CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: tagLength: Outside of numeric range
-CONSOLE ERROR: Algorithm: AES-GCM: AesGcmParams: tagLength: Outside of numeric range
-Tests bad algorithm inputs for AES-GCM
+CONSOLE ERROR: Invalid keyUsages argument
+CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Missing required property
+CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range
+CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range
+CONSOLE ERROR: Algorithm: AES-CBC: AesKeyGenParams: length: Outside of numeric range
+Tests generateKey() with bad AES-CBC parameters.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS error is null
-PASS error is null
+PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 1024 }, extractable, -1) threw exception TypeError: The 3rd argument is neither an array, nor does it have indexed properties..
+PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 1024 }, extractable, null) threw exception TypeError: The 3rd argument is neither an array, nor does it have indexed properties..
PASS error is null
PASS error is null
PASS error is null

Powered by Google App Engine
This is Rietveld 408576698