js: created TestExtension and smaller fixes
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 26 Apr 2018 15:13:34 +0000 (17:13 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Thu, 26 Apr 2018 15:13:34 +0000 (17:13 +0200)
commit1f7b19512cfa7e1b153b99d6a2b40bad82a5496e
tree73a0392bd738eb5023b904e3ab7b7b4e0a820768
parent3685913bf510a14b8cb324d980217d90489e6453
js: created TestExtension and smaller fixes

--

* Extensions:

  - Moved testapplication to Demoextension
  - Created BrowserTestExtension.
    Includes mocha and chai. For running tests that cannot be run
    outside a WebExtension

  Both Extensions can be found zipped in build/extensions after
  running build_extensions.sh

* Code changes:
  - src/Config: Place for the configuration
  - small fixes raised during testing in Keyring.js, Message.js,
  - src/gpgmejs_openpgpjs.js don't offer direct GpgME object to the
    outside, as it only causes confusion
  - index.js init() now checks the config for validity

* Tests:
  - Reordered tests in test/.
  - Input values are now in a separate file which may be of use for
    bulk testing

* moved the build directory from dist to build
28 files changed:
lang/js/BrowserTestExtension/browsertest.html [new file with mode: 0644]
lang/js/BrowserTestExtension/manifest.json [new file with mode: 0644]
lang/js/BrowserTestExtension/popup.html [new file with mode: 0644]
lang/js/BrowserTestExtension/popup.js [new file with mode: 0644]
lang/js/BrowserTestExtension/runbrowsertest.js [new file with mode: 0644]
lang/js/BrowserTestExtension/setup_testing.js [new file with mode: 0644]
lang/js/BrowserTestExtension/testicon.png [moved from lang/js/testicon.png with 100% similarity]
lang/js/BrowserTestExtension/tests/inputvalues.js [new file with mode: 0644]
lang/js/BrowserTestExtension/tests/startup.js [new file with mode: 0644]
lang/js/CHECKLIST
lang/js/CHECKLIST_build
lang/js/DemoExtension/entry.js [moved from lang/js/test_index.js with 96% similarity]
lang/js/DemoExtension/maindemo.js [moved from lang/js/testapplication.js with 100% similarity]
lang/js/DemoExtension/mainui.html [moved from lang/js/ui2.html with 89% similarity]
lang/js/DemoExtension/manifest.json [moved from lang/js/manifest.json with 54% similarity]
lang/js/DemoExtension/popup.html [moved from lang/js/testapplication_index.html with 100% similarity]
lang/js/DemoExtension/testicon.png [new file with mode: 0644]
lang/js/DemoExtension/ui.css [moved from lang/js/ui.css with 100% similarity]
lang/js/build_extensions.sh [new file with mode: 0755]
lang/js/src/Config.js [new file with mode: 0644]
lang/js/src/Keyring.js
lang/js/src/Message.js
lang/js/src/gpgmejs_openpgpjs.js
lang/js/src/index.js
lang/js/test/Helpers.js
lang/js/test/Message.js
lang/js/test/inputvalues.js [new file with mode: 0644]
lang/js/webpack.conf.js