diff options
author | Maximilian Krambach <[email protected]> | 2018-05-14 14:23:24 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-05-14 14:23:24 +0000 |
commit | 987b31746809dfe04966e37edd759a448a28d975 (patch) | |
tree | 8f1bc971f712c55740af924333557e21c9a99d86 /lang/js/BrowserTestExtension/openpgpModeTest.html | |
parent | js: more testing of nativeMessaging connection (diff) | |
download | gpgme-987b31746809dfe04966e37edd759a448a28d975.tar.gz gpgme-987b31746809dfe04966e37edd759a448a28d975.zip |
js: Tests and improvements for openpgp mode
--
* Added openpgp - Mode tests to the browsertest Extension. These tests
require openpgp, which should not be a hard dependency for the main
project. Packing openpgpjs into the extension is still TODO
* Fixes:
- openpgp mode API now correctly handles parameters as an object,
similar to openpgpjs
- proper check and parsing of openpgpjs Message Objects
Diffstat (limited to 'lang/js/BrowserTestExtension/openpgpModeTest.html')
-rw-r--r-- | lang/js/BrowserTestExtension/openpgpModeTest.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/js/BrowserTestExtension/openpgpModeTest.html b/lang/js/BrowserTestExtension/openpgpModeTest.html new file mode 100644 index 00000000..e7a12be9 --- /dev/null +++ b/lang/js/BrowserTestExtension/openpgpModeTest.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <link href="libs/mocha.css" rel="stylesheet" /> + </head> +<body> + <h3>Openpgp mode test</h3> + <div id="mocha"></div> + <!-- load unit tests --> + <script src="libs/mocha.js"></script> + <script src="libs/chai.js"></script> + <script src="setup_testing.js"></script> + <script src="libs/gpgmejs.bundle.js"></script> + <script src="libs/openpgp.min.js"></script> + <script src="tests/inputvalues.js"></script> + <script src="tests/inputValues_openpgpjs.js"></script> +<!-- insert tests here--> + <script src="tests/openpgpModeTest.js"></script> +<!-- run tests --> + <script src="runbrowsertest.js"></script> + </body> +</html> |