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

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

Issue 39093002: [webcrypto] Add some more layouttests for crypto.subtle.digest() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/encrypt-decrypt.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 []
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]
9 = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f]
10 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': 2 arguments required, but only 1 present.. 6 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': 2 arguments required, but only 1 present..
11 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Inva lid dataBuffer argument. 7 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Inva lid dataBuffer argument.
12 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Invali d dataBuffer argument. 8 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Invali d dataBuffer argument.
13 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : Algorithm: Unrecognized algorithm name. 9 PASS crypto.subtle.digest({name: 'sha'}, data) threw exception NotSupportedError : Algorithm: Unrecognized algorithm name.
14 PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object. 10 PASS crypto.subtle.digest(null, data) threw exception TypeError: Algorithm: Not an object.
15 PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string. 11 PASS crypto.subtle.digest({}, data) threw exception TypeError: Algorithm: name: Missing or not a string.
12 PASS: SHA-1 of [] should be [da39a3ee5e6b4b0d3255bfef95601890afd80709] and was
13 PASS: SHA-224 of [] should be [d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac 5b3e42f] and was
14 PASS: SHA-256 of [] should be [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca 495991b7852b855] and was
15 PASS: SHA-384 of [] should be [38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434 c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b] and was
16 PASS: SHA-512 of [] should be [cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc8 3f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e] and was
17 PASS: SHA-1 of [00] should be [5ba93c9db0cff93f52b521d7420e43f6eda2784f] and was
18 PASS: SHA-224 of [00] should be [fff9292b4201617bdc4d3053fce02734166a683d7d858a7 f5f59b073] and was
19 PASS: SHA-256 of [00] should be [6e340b9cffb37a989ca544e6bb780a2c78901d3fb337387 68511a30617afa01d] and was
20 PASS: SHA-384 of [00] should be [bec021b4f368e3069134e012c2b4307083d3a9bdd206e24 e5f0d86e13d6636655933ec2b413465966817a9c208a11717] and was
21 PASS: SHA-512 of [00] should be [b8244d028981d693af7b456af8efa4cad63d282e19ff149 42c246e50d9351d22704a802a71c3580b6370de4ceb293c324a8423342557d4e5c38438f0e36910e e] and was
22 PASS: SHA-1 of [000102030405] should be [868460d98d09d8bbb93d7b6cdd15cc7fbec676b 9] and was
23 PASS: SHA-224 of [000102030405] should be [7d92e7f1cad1818ed1d13ab41f04ebabfe1fe f6bb4cbeebac34c29bc] and was
24 PASS: SHA-256 of [000102030405] should be [17e88db187afd62c16e5debf3e6527cd006bc 012bc90b51a810cd80c2d511f43] and was
25 PASS: SHA-384 of [000102030405] should be [79f4738706fce9650ac60266675c3cd07298b 09923850d525604d040e6e448adc7dc22780d7e1b95bfeaa86a678e4552] and was
26 PASS: SHA-512 of [000102030405] should be [2f3831bccc94cf061bcfa5f8c23c1429d26e3 bc6b76edad93d9025cb91c903af6cf9c935dc37193c04c2c66e7d9de17c358284418218afea21601 47aaa912f4c] and was
16 PASS successfullyParsed is true 27 PASS successfullyParsed is true
17 28
18 TEST COMPLETE 29 TEST COMPLETE
19 30
OLDNEW
« no previous file with comments | « LayoutTests/crypto/digest.html ('k') | LayoutTests/crypto/encrypt-decrypt.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698