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 [] | 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 |
OLD | NEW |