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

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

Issue 24467004: [webcrypto] Remove MockWebCrypto. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 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 | « LayoutTests/crypto/digest.html ('k') | LayoutTests/crypto/exportKey.html » ('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)
11 rejected with value of null
12 Error (dummy implementation rejects this input)
13 rejected with value of null
14 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': 2 arguments required, but only 1 present.. 10 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': 2 arguments required, but only 1 present..
15 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Inva lid dataBuffer argument. 11 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Inva lid dataBuffer argument.
16 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Invali d dataBuffer argument. 12 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Invali d dataBuffer argument.
17 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : Algorithm: Unrecognized algorithm name. 13 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : Algorithm: Unrecognized algorithm name.
18 PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object. 14 PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object.
19 PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string. 15 PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string.
20 PASS successfullyParsed is true 16 PASS successfullyParsed is true
21 17
22 TEST COMPLETE 18 TEST COMPLETE
23 19
OLDNEW
« no previous file with comments | « LayoutTests/crypto/digest.html ('k') | LayoutTests/crypto/exportKey.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698