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

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

Issue 19885002: WebCrypto: Add interfaces for importKey(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and rename Interface --> Private Created 7 years, 5 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/importKey.html ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/importKey-expected.txt
diff --git a/LayoutTests/crypto/importKey-expected.txt b/LayoutTests/crypto/importKey-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3eda6859aa0d0bc6b881c18876609a1ad14daa2b
--- /dev/null
+++ b/LayoutTests/crypto/importKey-expected.txt
@@ -0,0 +1,33 @@
+Tests cypto.subtle.importKey.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS key.type is 'private'
+PASS key.extractable is true
+PASS key.algorithm.name is 'SHA-256'
+PASS key.usages.join(',') is 'encrypt,sign'
+PASS key.type is 'private'
+PASS key.extractable is true
+PASS key.algorithm.name is 'SHA-256'
+PASS key.usages.join(',') is ''
+PASS key.type is 'private'
+PASS key.extractable is false
+PASS key.algorithm.name is 'SHA-256'
+PASS key.usages.join(',') is ''
+PASS key.type is 'public'
+PASS key.extractable is false
+PASS key.algorithm.name is 'SHA-256'
+PASS key.usages.join(',') is ''
+PASS key.type is 'public'
+PASS key.extractable is false
+PASS key.algorithm.name is 'SHA-256'
+PASS key.usages.join(',') is ''
+rejected with null
+PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, keyUsages) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages) threw exception TypeError: Type error.
+PASS crypto.subtle.importKey(keyFormat, data, algorithm, extractable, ['SIGN']) threw exception TypeError: Type error.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/importKey.html ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698