| OLD | NEW |
| 1 Tests cypto.subtle.sign and crypto.subtle.verify | 1 Tests cypto.subtle.sign and crypto.subtle.verify |
| 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 PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, null) threw exception TypeError
: Type error. | 6 PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, null, data) threw exception Ref
erenceError: data is not defined. |
| 7 PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, 'a') threw exception TypeError:
Type error. | 7 PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, 'a', data) threw exception Refe
renceError: data is not defined. |
| 8 PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, []) threw exception TypeError:
Type error. | 8 PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, [], data) threw exception Refer
enceError: data is not defined. |
| 9 PASS signResult.byteLength is 17 | 9 PASS signResult.byteLength is 17 |
| 10 PASS verifyResult1 is true | 10 PASS verifyResult1 is true |
| 11 PASS verifyResult2 is false | 11 PASS verifyResult2 is false |
| 12 PASS successfullyParsed is true | 12 PASS successfullyParsed is true |
| 13 | 13 |
| 14 TEST COMPLETE | 14 TEST COMPLETE |
| 15 | 15 |
| OLD | NEW |