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

Unified Diff: LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt

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/ecdh-deriveBits-failures-expected.txt
diff --git a/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt b/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt
index 38a3e45f9ef6ace19086d89c038c717bb8571544..6d658d28cb7821adec32677f289336e2781e5ce1 100644
--- a/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt
+++ b/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt
@@ -3,15 +3,35 @@ Tests bad inputs to ECDH's deriveBits()
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+deriveBits() without algorithm name or public key...
error is: TypeError: Algorithm: name: Missing or not a string
+
+deriveBits() without public key...
error is: TypeError: EcdhKeyDeriveParams: public: Missing required property
+
+deriveBits() with algorithm that is null...
error is: TypeError: Algorithm: Not an object
+
+deriveBits() with algorithm that is -1...
error is: NotSupportedError: Algorithm: Unrecognized name
+
+deriveBits() with public key that is null...
error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey
+
+deriveBits() with public key that is -1...
error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey
+
+deriveBits() with public key that is a string...
error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey
+
+deriveBits() with wrong curve public key...
error is: InvalidAccessError: The public parameter for ECDH key derivation is for a different named curve
+
+deriveBits() with a private key as the 'public' parameter
error is: InvalidAccessError: The public parameter for ECDH key derivation is not a public EC key
+
+deriveBits() with public key that is for ECDSA...
error is: InvalidAccessError: The public parameter for ECDH key derivation must be for ECDH
PASS successfullyParsed is true
« no previous file with comments | « LayoutTests/crypto/ecdh-deriveBits-failures.html ('k') | LayoutTests/crypto/ecdsa-generateKey-parseAlgorithm-failures.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698