OLD | NEW |
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 [] -- with empty process() | 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 [] -- without calling process() | |
9 = [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] |
10 SHA1 of [0x0] | 8 SHA1 of [0x0] |
11 = [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] |
12 SHA1 of [0x0] -- as an ArrayBuffer | |
13 = [5b a9 3c 9d b0 cf f9 3f 52 b5 21 d7 42 0e 43 f6 ed a2 78 4f] | |
14 SHA1 of [0, 1, 2, 3, 4, 5] -- multipart | |
15 = [86 84 60 d9 8d 09 d8 bb b9 3d 7b 6c dd 15 cc 7f be c6 76 b9] | |
16 Call process() after finish() | |
17 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] | |
18 abort() | |
19 rejected with value of null | |
20 abort() and then abort() | |
21 rejected with value of null | |
22 rejected with value of null | |
23 process() and then abort() | |
24 rejected with value of null | |
25 finish() and then abort() | |
26 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] | |
27 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] | |
28 finish() and then process() | |
29 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] | |
30 finish() and then finish() | |
31 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] | |
32 = [da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 60 18 90 af d8 07 09] | |
33 SHA-256 rejects (dummy implementation) | 10 SHA-256 rejects (dummy implementation) |
34 rejected with value of null | 11 rejected with value of null |
35 Error during process() (dummy implementation rejects inputs over 6 bytes) | 12 Error (dummy implementation rejects this input) |
36 rejected with value of null | 13 rejected with value of null |
37 PASS op.process(null) threw exception TypeError: Type error. | 14 PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Not enough
arguments. |
38 PASS op.process() threw exception TypeError: Not enough arguments. | 15 PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Type
error. |
39 PASS op.process(-1) threw exception TypeError: Type error. | 16 PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Type e
rror. |
40 PASS successfullyParsed is true | 17 PASS successfullyParsed is true |
41 | 18 |
42 TEST COMPLETE | 19 TEST COMPLETE |
43 | 20 |
OLD | NEW |