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

Side by Side Diff: LayoutTests/crypto/digest-expected.txt

Issue 22992006: WebCrypto: Add exception messages for algorithm normalization failures. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use trunc() 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/crypto/encrypt-decrypt-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests cypto.subtle.digest. 1 Tests cypto.subtle.digest.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 SHA1 of [] 6 SHA1 of []
7 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] 7 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09]
8 SHA1 of [0x0] 8 SHA1 of [0x0]
9 = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f] 9 = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f]
10 SHA-256 rejects (dummy implementation) 10 SHA-256 rejects (dummy implementation)
11 rejected with value of null 11 rejected with value of null
12 Error (dummy implementation rejects this input) 12 Error (dummy implementation rejects this input)
13 rejected with value of null 13 rejected with value of null
14 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Not enough arguments. 14 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Not enough arguments.
15 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Type error. 15 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Type error.
16 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Type e rror. 16 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Type e rror.
17 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : The implementation did not support the requested type of object or operation.. 17 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : Algorithm: Unrecognized algorithm name.
18 PASS crypto.subtle.digest(null, data) threw exception NotSupportedError: The imp lementation did not support the requested type of object or operation.. 18 PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object.
19 PASS crypto.subtle.digest({}, data) threw exception NotSupportedError: The imple mentation did not support the requested type of object or operation.. 19 PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string.
20 PASS successfullyParsed is true 20 PASS successfullyParsed is true
21 21
22 TEST COMPLETE 22 TEST COMPLETE
23 23
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/crypto/encrypt-decrypt-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698