From 26bf7b62c772ec62373aede69640327fc6d6bdfd Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 23 Mar 2016 19:15:04 +0800 Subject: [PATCH] Prevent native crypto for worker tests. --- test/general/openpgp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/general/openpgp.js b/test/general/openpgp.js index 3e6b6aea..3be82c67 100644 --- a/test/general/openpgp.js +++ b/test/general/openpgp.js @@ -451,6 +451,7 @@ describe('OpenPGP.js public api tests', function() { describe('without Worker', tests); tryWorker('with Worker', tests, function() { + openpgp.config.useNative = false; openpgp.initWorker({ path:'../dist/openpgp.worker.js' }); }, function() { openpgp.destroyWorker(); // cleanup worker in case of failure @@ -878,7 +879,6 @@ describe('OpenPGP.js public api tests', function() { it('should encrypt and decrypt with binary data and transferable objects', function(done) { openpgp.config.zeroCopy = true; // activate transferable objects - openpgp.config.useNative = false; // use asm.js fallback with web worker, not native crypto var encOpt = { data: new Uint8Array([0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01]), passwords: password1,