Skip test for OpenPGP.js inside an application worker in old Edge

Old Edge doesn't support crypto.getRandomValues inside a Worker.
This commit is contained in:
Daniel Huigens
2020-02-17 18:07:16 +01:00
parent 741961f809
commit bc91ac302d

View File

@@ -11,6 +11,9 @@ tryTests('Application Worker', tests, {
function tests() {
it('Should support loading OpenPGP.js from inside a Web Worker', async function() {
if (/Edge/.test(navigator.userAgent)) {
this.skip(); // Old Edge doesn't support crypto.getRandomValues inside a Worker.
}
try {
eval('(async function() {})');
} catch (e) {