blob: 67c29ff206253e8017728637020c8fd9544de345 [file]
CONSOLE WARNING: line 4: SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
Tests crypto.randomValues.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS 'crypto' in self is true
PASS 'getRandomValues' in self.crypto is true
PASS self.crypto.__proto__.hasOwnProperty('getRandomValues') is true
PASS matchingBytes < 100 is true
PASS crypto.getRandomValues(new Uint8Array(new SharedArrayBuffer(100))) threw exception TypeError: Failed to execute 'getRandomValues' on 'Crypto': The provided ArrayBufferView value must not be shared..
PASS successfullyParsed is true
TEST COMPLETE