js: more testing
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Fri, 27 Apr 2018 18:03:09 +0000 (20:03 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Fri, 27 Apr 2018 18:03:09 +0000 (20:03 +0200)
commitfda7b13f1b673962ce34b6f429158a7eb9cef47b
tree8b1f828c451c2d04ac5e8b311b7df27552405c59
parenteb7129f3196ae4f0807ceba0c1fc9e818ea6cd22
js: more testing

--

* Tests: initialization of the two modes, encryption

* gpgme.js: reintroduced message check before calling
  Connection.post()

* gpgmejs_openpgp.js: Fixed openpgp mode not passing keys

* index.js: fixed some confusion in parseconfig()

* Inserted some TODO stubs for missing error handling
16 files changed:
lang/js/BrowserTestExtension/tests/encryptTest.js [new file with mode: 0644]
lang/js/BrowserTestExtension/tests/inputvalues.js
lang/js/BrowserTestExtension/tests/startup.js
lang/js/build_extensions.sh
lang/js/src/Connection.js
lang/js/src/Key.js
lang/js/src/Keyring.js
lang/js/src/Message.js
lang/js/src/gpgmejs.js
lang/js/src/gpgmejs_openpgpjs.js
lang/js/src/index.js
lang/js/src/permittedOperations.js
lang/js/test/Helpers.js
lang/js/test/Message.js
lang/js/test/index.js [new file with mode: 0644]
lang/js/test/inputvalues.js