From a9a9a90ae282974b85767560557e93c29d5e8c72 Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Mon, 17 Feb 2020 18:07:16 +0100 Subject: [PATCH] Skip test for OpenPGP.js inside an application worker in old Edge Old Edge doesn't support crypto.getRandomValues inside a Worker. --- test/worker/application_worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/worker/application_worker.js b/test/worker/application_worker.js index 2b1bc425..0e73dffa 100644 --- a/test/worker/application_worker.js +++ b/test/worker/application_worker.js @@ -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) {