aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/DemoExtension/maindemo.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-08-30 13:00:19 +0000
committerMaximilian Krambach <[email protected]>2018-08-30 13:00:19 +0000
commit3201ded91f91fcdf501ad966380b6ff29d798b09 (patch)
tree31db36d9654b9e5f48475e9723e2fa097ca6c4e0 /lang/js/DemoExtension/maindemo.js
parentjs: add encoding parameter for encrypt return (diff)
downloadgpgme-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.js4
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;