blob: 34b4d168bb8aab06901bdcb03458199dca6fdf7e [file] [log] [blame]
Tests the limits of crypto.randomValues.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS 'crypto' in window is true
PASS 'getRandomValues' in window.crypto is true
PASS crypto.getRandomValues(almostTooLargeArray) did not throw exception.
PASS crypto.getRandomValues(tooLargeArray) threw exception Error: QuotaExceededError: DOM Exception 22.
PASS successfullyParsed is true
TEST COMPLETE