[git] GPGME - branch, master, updated. gpgme-1.11.1-270-g6463b1c

by Maximilian Krambach cvs at cvs.gnupg.org
Thu Sep 6 10:14:11 CEST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  6463b1cd3b52f7b8a0bbaa838ae7b29da9f458e4 (commit)
      from  1c618166fcd296b4e95f3a6ea9c415d3dca5ce0a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6463b1cd3b52f7b8a0bbaa838ae7b29da9f458e4
Author: Maximilian Krambach <maximilian.krambach at intevation.de>
Date:   Thu Sep 6 10:11:10 2018 +0200

    js: fix error in toKeyIdArray
    
    --
    * src/Helpers.js: GPGME_Keys were not parsed as valid, as their
      fingerprint getter is not a fingerprint 'property'.
    
    * BrowserTestExtension: fixed a dsplay typo in counting of tests.

diff --git a/lang/js/BrowserTestExtension/tests/longRunningTests.js b/lang/js/BrowserTestExtension/tests/longRunningTests.js
index 1d710e3..f28a6e7 100644
--- a/lang/js/BrowserTestExtension/tests/longRunningTests.js
+++ b/lang/js/BrowserTestExtension/tests/longRunningTests.js
@@ -34,9 +34,9 @@ describe('Long running Encryption/Decryption', function () {
         });
     });
 
-    for (let i=0; i < 101; i++) {
+    for (let i=1; i < 101; i++) {
         it('Successful encrypt/decrypt completely random data '
-            + (i+1) + '/100', function (done) {
+            + (i) + '/100', function (done) {
             const data = bigString(2*1024*1024);
             context.encrypt({ data: data, publicKeys: good_fpr })
                 .then(function (answer){
diff --git a/lang/js/src/Helpers.js b/lang/js/src/Helpers.js
index f370fe6..0b41852 100644
--- a/lang/js/src/Helpers.js
+++ b/lang/js/src/Helpers.js
@@ -50,7 +50,7 @@ export function toKeyIdArray (input){
             }
         } else if (typeof (input[i]) === 'object'){
             let fpr = '';
-            if (input[i].hasOwnProperty('fingerprint')){
+            if (input[i].fingerprint !== undefined){
                 fpr = input[i].fingerprint;
             } else if (input[i].hasOwnProperty('primaryKey') &&
                 input[i].primaryKey.hasOwnProperty('getFingerprint')){

-----------------------------------------------------------------------

Summary of changes:
 lang/js/BrowserTestExtension/tests/longRunningTests.js | 4 ++--
 lang/js/src/Helpers.js                                 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list