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

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

Issue 19082002: WebCrypto: Add SHA-1 support to crypto.subtle.digest(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove an extra newline 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/digest.html ('k') | Source/bindings/v8/ScriptValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/digest-expected.txt
diff --git a/LayoutTests/crypto/digest-expected.txt b/LayoutTests/crypto/digest-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3ae98d4d414f22da25e44635c1061d432f8cb191
--- /dev/null
+++ b/LayoutTests/crypto/digest-expected.txt
@@ -0,0 +1,39 @@
+Tests cypto.subtle.digest.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+SHA1 of [] -- with empty process()
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+SHA1 of [] -- without calling process()
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+SHA1 of [0x0]
+ = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f]
+SHA1 of [0x0] -- as an ArrayBuffer
+ = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f]
+SHA1 of [0, 1, 2, 3, 4, 5] -- multipart
+ = [86 84 60 d9 8d 09 d8 bb b9 3d 7b 6c dd 15 cc 7f be c6 76 b9]
+Call process() after finish()
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+abort()
+ rejected with value of null
+abort() and then abort()
+ rejected with value of null
+ rejected with value of null
+process() and then abort()
+ rejected with value of null
+finish() and then abort()
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+finish() and then process()
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+finish() and then finish()
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+ = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
+PASS op.process(null) threw exception TypeError: Type error.
+PASS op.process() threw exception TypeError: Not enough arguments.
+PASS op.process(-1) threw exception TypeError: Type error.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/crypto/digest.html ('k') | Source/bindings/v8/ScriptValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698