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

Unified Diff: LayoutTests/crypto/subtle/hkdf-importKey-expected.txt

Issue 822083003: Webcrypto: add layout tests for HKDF algorithm (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/subtle/hkdf-importKey-expected.txt
diff --git a/LayoutTests/crypto/subtle/hkdf-importKey-expected.txt b/LayoutTests/crypto/subtle/hkdf-importKey-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a9b1d8b4c7b7705f2fbf1dfbc12ab344f1051838
--- /dev/null
+++ b/LayoutTests/crypto/subtle/hkdf-importKey-expected.txt
@@ -0,0 +1,26 @@
+Test bad inputs to HKDF deriveBits()
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+importKey() with bad usages...
eroman 2014/12/23 23:29:39 rather than say "bad usages" say which uses were u
nharper 2015/01/06 23:51:59 Done.
+error is: SyntaxError: Cannot create a key using the specified key usages.
+
+importKey() with null key...
+error is: DataError: Key data must be a buffer for non-JWK formats
+
+importKey() with jwk type...
+error is: DataError: Key data must be an object for JWK import
+
+importKey() with spki type...
+error is: NotSupportedError: Unsupported import key format for algorithm
+
+importKey() with empty usages...
+error is: SyntaxError: Usages cannot be empty when creating a key.
+
+importKey() correctly
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698