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:
parent
3a84442b5f
commit
a9a9a90ae2
|
@ -11,6 +11,9 @@ tryTests('Application Worker', tests, {
|
||||||
function tests() {
|
function tests() {
|
||||||
|
|
||||||
it('Should support loading OpenPGP.js from inside a Web Worker', async function() {
|
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 {
|
try {
|
||||||
eval('(async function() {})');
|
eval('(async function() {})');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user