Prevent native crypto for worker tests.
This commit is contained in:
parent
760bdb8f00
commit
26bf7b62c7
|
@ -451,6 +451,7 @@ describe('OpenPGP.js public api tests', function() {
|
||||||
describe('without Worker', tests);
|
describe('without Worker', tests);
|
||||||
|
|
||||||
tryWorker('with Worker', tests, function() {
|
tryWorker('with Worker', tests, function() {
|
||||||
|
openpgp.config.useNative = false;
|
||||||
openpgp.initWorker({ path:'../dist/openpgp.worker.js' });
|
openpgp.initWorker({ path:'../dist/openpgp.worker.js' });
|
||||||
}, function() {
|
}, function() {
|
||||||
openpgp.destroyWorker(); // cleanup worker in case of failure
|
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) {
|
it('should encrypt and decrypt with binary data and transferable objects', function(done) {
|
||||||
openpgp.config.zeroCopy = true; // activate transferable objects
|
openpgp.config.zeroCopy = true; // activate transferable objects
|
||||||
openpgp.config.useNative = false; // use asm.js fallback with web worker, not native crypto
|
|
||||||
var encOpt = {
|
var encOpt = {
|
||||||
data: new Uint8Array([0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01]),
|
data: new Uint8Array([0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01]),
|
||||||
passwords: password1,
|
passwords: password1,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user