multiple web workers

This commit is contained in:
Bart Butler
2018-03-05 21:36:53 -08:00
parent 572abadc91
commit 2bb5db2cf4
4 changed files with 82 additions and 51 deletions

View File

@@ -363,7 +363,7 @@ describe('OpenPGP.js public api tests', function() {
postMessage: function() {}
};
openpgp.initWorker({
worker: workerStub
workers: [workerStub]
});
expect(openpgp.getWorker()).to.exist;
openpgp.destroyWorker();
@@ -522,7 +522,7 @@ describe('OpenPGP.js public api tests', function() {
postMessage: function() {}
};
openpgp.initWorker({
worker: workerStub
workers: [workerStub]
});
const proxyGenStub = stub(openpgp.getWorker(), 'delegate');
getWebCryptoAllStub.returns();