Don't run AsyncProxy tests in browsers that don't fully support workers
This commit is contained in:
parent
77055f6dfe
commit
49a7deacd4
|
@ -35,7 +35,7 @@ const plaintext = 'short message\nnext line\n한국어/조선말';
|
|||
let pubKey;
|
||||
|
||||
tryTests('Async Proxy', tests, {
|
||||
if: typeof window !== 'undefined' && window.Worker,
|
||||
if: typeof window !== 'undefined' && window.Worker && window.MessageChannel,
|
||||
before: async function() {
|
||||
openpgp.initWorker({ path:'../dist/openpgp.worker.js' });
|
||||
pubKey = (await openpgp.key.readArmored(pub_key)).keys[0];
|
||||
|
|
Loading…
Reference in New Issue
Block a user