diff options
author | Maximilian Krambach <[email protected]> | 2018-08-30 13:00:19 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-08-30 13:00:19 +0000 |
commit | 3201ded91f91fcdf501ad966380b6ff29d798b09 (patch) | |
tree | 31db36d9654b9e5f48475e9723e2fa097ca6c4e0 /lang/js/DemoExtension/maindemo.js | |
parent | js: add encoding parameter for encrypt return (diff) | |
download | gpgme-3201ded91f91fcdf501ad966380b6ff29d798b09.tar.gz gpgme-3201ded91f91fcdf501ad966380b6ff29d798b09.zip |
js: add tests
--
* BrowserTestExtension/tests:
- decryptTest.js: Check Decryption and return values of binary data
- encryptTest.js: Return data type of armored/non-armored encryption
- added a small encoded input png for testing
* DemoExtension/maindemo.js: Fixed unexpected usage of the Demo encrypt
(non-armored)
Diffstat (limited to 'lang/js/DemoExtension/maindemo.js')
-rw-r--r-- | lang/js/DemoExtension/maindemo.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/js/DemoExtension/maindemo.js b/lang/js/DemoExtension/maindemo.js index b472bcc8..c992e7e1 100644 --- a/lang/js/DemoExtension/maindemo.js +++ b/lang/js/DemoExtension/maindemo.js @@ -29,8 +29,8 @@ document.addEventListener('DOMContentLoaded', function () { function (){ let data = document.getElementById('inputtext').value; let keyId = document.getElementById('pubkey').value; - gpgmejs.encrypt({ data: data, publicKeys: keyId, armor:false }).then( - function (answer){ + gpgmejs.encrypt({ data: data, publicKeys: keyId, armor: true }) + .then(function (answer){ if (answer.data){ document.getElementById( 'answer').value = answer.data; |