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) | 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 |
OLD | NEW |