blob: 72ccb1fa8b725b3c40b184a3847c0e3fa9ca3cd3 [file] [log] [blame]
Tests cypto.subtle.sign and crypto.subtle.verify
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, null) threw exception TypeError: Type error.
PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, 'a') threw exception TypeError: Type error.
PASS crypto.subtle.verify(hmacSha1, hmacSha1Key, []) threw exception TypeError: Type error.
PASS signResult.byteLength is 17
PASS verifyResult1 is true
PASS verifyResult2 is false
PASS successfullyParsed is true
TEST COMPLETE