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

Unified Diff: LayoutTests/crypto/import-jwk-expected.txt

Issue 298023002: [webcrypto] Import WebKit's webcrypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove FIXME for unrecognized jwk usages (supported now) Created 6 years, 6 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
« no previous file with comments | « LayoutTests/crypto/import-jwk.html ('k') | LayoutTests/crypto/jwk-export-use-values.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/import-jwk-expected.txt
diff --git a/LayoutTests/crypto/import-jwk-expected.txt b/LayoutTests/crypto/import-jwk-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8b4b3304aa69172614cc0ecce1ca0087f70f5837
--- /dev/null
+++ b/LayoutTests/crypto/import-jwk-expected.txt
@@ -0,0 +1,27 @@
+Test error handling for JWK import.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+error is: DataError: No key data was provided
+error is: DataError: JWK input could not be parsed to a JSON dictionary
+error is: DataError: JWK input could not be parsed to a JSON dictionary
+error is: DataError: JWK input could not be parsed to a JSON dictionary
+error is: DataError: The required JWK property "kty" was missing
+error is: DataError: The JWK "kty" property was unrecognized
+error is: DataError: The JWK "alg" property was not recognized
+error is: DataError: The JWK "alg" property was inconsistent with that specified by the Web Crypto call
+error is: DataError: The JWK "alg" property was inconsistent with that specified by the Web Crypto call
+error is: DataError: The required JWK property "k" was missing
+error is: DataError: The required JWK property "k" was missing
+error is: DataError: The JWK "k" property did not include the right length of key data for the given algorithm.
+error is: DataError: The JWK "k" property did not include the right length of key data for the given algorithm.
+error is: DataError: The JWK property "kty" must be a string
+error is: DataError: The JWK property "alg" must be a string
+error is: DataError: The JWK property "use" must be a string
+error is: DataError: The JWK property "ext" must be a boolean
+error is: DataError: The JWK property "k" must be a string
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/import-jwk.html ('k') | LayoutTests/crypto/jwk-export-use-values.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698