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

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

Issue 23592023: WebCrypto: Add interface for exportKey(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add test expectations, remove platformCrypto nullity check Created 7 years, 4 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/exportKey.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/exportKey-expected.txt
diff --git a/LayoutTests/crypto/exportKey-expected.txt b/LayoutTests/crypto/exportKey-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..109fbff7d377e73e692a6d6e34ebb6015ef0cc1c
--- /dev/null
+++ b/LayoutTests/crypto/exportKey-expected.txt
@@ -0,0 +1,18 @@
+Tests cypto.subtle.exportKey.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS crypto.subtle.exportKey(3, keys.aesCbcJustDecrypt) threw exception TypeError: Invalid keyFormat argument.
+PASS crypto.subtle.exportKey(null, keys.aesCbcJustDecrypt) threw exception TypeError: Invalid keyFormat argument.
+PASS crypto.subtle.exportKey('invalid', keys.aesCbcJustDecrypt) threw exception TypeError: Invalid keyFormat argument.
+PASS crypto.subtle.exportKey('raw', null) threw exception TypeError: Invalid key argument.
+PASS crypto.subtle.exportKey('raw', 3) threw exception TypeError: Invalid key argument.
+PASS keys.aesCbcJustDecrypt.extractable is false
+PASS crypto.subtle.exportKey('raw', keys.aesCbcJustDecrypt) threw exception NotSupportedError: key is not extractable.
+PASS keyData.byteLength is 3
+PASS keyData.byteLength is 5
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/exportKey.html ('k') | LayoutTests/crypto/resources/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698