js: Added browser testing for unit tests
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 3 May 2018 16:03:22 +0000 (18:03 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 3 May 2018 16:03:22 +0000 (18:03 +0200)
commitc755287ba845c4cbbf1d50e5aafecb2e687c7ac9
tree6b174738ce28aef4bdc29be8afa9e87db9fcaa69
parent6f67814eb45725bc7f3736a2638bad0a7470f17a
js: Added browser testing for unit tests

--

* Added unittests to be run inside a Browser. To be able to access
  the non-exposed functions and classes, a testing bundle will be
  created, containing the tests (unittests.js) and the items to be
  tested.
* src/Helpelpers, src/Key, src/Keyring: fixed some errors found
  during testing.
lang/js/BrowserTestExtension/browsertest.html
lang/js/BrowserTestExtension/runbrowsertest.js
lang/js/BrowserTestExtension/tests/encryptTest.js
lang/js/README_testing [new file with mode: 0644]
lang/js/build_extensions.sh
lang/js/src/Helpers.js
lang/js/src/Key.js
lang/js/src/Keyring.js
lang/js/unittest_inputvalues.js [new file with mode: 0644]
lang/js/unittests.js [new file with mode: 0644]
lang/js/webpack.conf_unittests.js [new file with mode: 0644]