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

Unified Diff: LayoutTests/crypto/jwk-import-use-values-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/jwk-import-use-values.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/jwk-import-use-values-expected.txt
diff --git a/LayoutTests/crypto/jwk-import-use-values-expected.txt b/LayoutTests/crypto/jwk-import-use-values-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..2c7a4e437831b394b784c69584b500c6daf99ce7
--- /dev/null
+++ b/LayoutTests/crypto/jwk-import-use-values-expected.txt
@@ -0,0 +1,85 @@
+Test importing keys with various uses from JWK.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+{"key_ops":["encrypt","encrypt"]}:
+PASS key.usages is ["encrypt"]
+
+{"key_ops":["encrypt"]}:
+PASS key.usages is ["encrypt"]
+
+{"key_ops":["encrypt"]}:
+Failed importing with decrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"key_ops":["decrypt"]}:
+PASS key.usages is ["decrypt"]
+
+{"key_ops":["decrypt"]}:
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"key_ops":["encrypt","decrypt"]}:
+PASS key.usages is ["encrypt","decrypt"]
+
+{"key_ops":["encrypt","decrypt"]}:
+PASS key.usages is ["encrypt"]
+
+{"key_ops":["encrypt","decrypt"]}:
+Failed importing with unwrapKey: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"key_ops":["wrapKey"]}:
+PASS key.usages is ["wrapKey"]
+
+{"key_ops":["wrapKey"]}:
+Failed importing with unwrapKey: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"key_ops":["unwrapKey"]}:
+PASS key.usages is ["unwrapKey"]
+
+{"key_ops":["wrapKey","unwrapKey"]}:
+PASS key.usages is ["wrapKey","unwrapKey"]
+
+{"key_ops":["encrypt","decrypt","wrapKey"]}:
+PASS key.usages is ["encrypt","decrypt","wrapKey"]
+
+{"use":"enc"}:
+PASS key.usages is ["encrypt","decrypt","wrapKey","unwrapKey"]
+
+{"use":"enc"}:
+PASS key.usages is ["encrypt","decrypt","unwrapKey"]
+
+{"use":"enc"}:
+PASS key.usages is ["encrypt","decrypt","unwrapKey"]
+
+{"key_ops":["sign"]}:
+PASS key.usages is ["sign"]
+
+{"key_ops":["sign"]}:
+Failed importing with verify: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"key_ops":["verify"]}:
+PASS key.usages is ["verify"]
+
+{"key_ops":["verify"]}:
+Failed importing with sign: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"use":"sig"}:
+PASS key.usages is ["sign","verify"]
+
+{"use":"sig"}:
+PASS key.usages is ["sign"]
+
+{"key_ops":["'encrypt'","decrypt"]}:
+PASS key.usages is ["decrypt"]
+
+{"key_ops":["encrypt ","foo","decrypt"]}:
+PASS key.usages is ["decrypt"]
+
+{"key_ops":["Encrypt","decrypt"]}:
+PASS key.usages is ["decrypt"]
+
+{"key_ops":["'encrypt'","decrypt"]}:
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"key_ops":["encrypt "]}:
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+{"key_ops":["Encrypt"]}:
+Failed importing with encrypt: DataError: The JWK "key_ops" property was inconsistent with that specified by the Web Crypto call. The JWK usage must be a superset of those requested
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/jwk-import-use-values.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698