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

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

Issue 754563003: Add LayoutTests for WebCrypto's ECDH algorithm. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master Created 6 years, 1 month 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
« no previous file with comments | « LayoutTests/crypto/ecdh-deriveBits-failures.html ('k') | LayoutTests/crypto/ecdh-generate-key.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..d89674c9045c9107156aa247d73999aeffe14df6
--- /dev/null
+++ b/LayoutTests/crypto/ecdh-deriveBits-failures-expected.txt
@@ -0,0 +1,19 @@
+Tests bad inputs to ECDH's deriveBits()
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+error is: SyntaxError: Algorithm: name: Missing or not a string
+error is: SyntaxError: EcdhKeyDeriveParams: public: Missing required property
+error is: SyntaxError: Algorithm: Not an object
+error is: TypeError: Failed to execute 'deriveBits' on 'SubtleCrypto': parameter 1 ('algorithm') is not an object.
+error is: SyntaxError: EcdhKeyDeriveParams: public: Must be a CryptoKey
+error is: SyntaxError: EcdhKeyDeriveParams: public: Must be a CryptoKey
+error is: SyntaxError: EcdhKeyDeriveParams: public: Must be a CryptoKey
+error is: InvalidAccessError: The public parameter for ECDH key derivation is for a different named curve
+error is: InvalidAccessError: The public parameter for ECDH key derivation is not a public EC key
+error is: InvalidAccessError: The public parameter for ECDH key derivation must be for ECDH
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/ecdh-deriveBits-failures.html ('k') | LayoutTests/crypto/ecdh-generate-key.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698