aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/BrowserTestExtension/rununittests.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-05-09 17:40:57 +0000
committerMaximilian Krambach <[email protected]>2018-05-09 17:40:57 +0000
commitc92326cc257cf7c8b6c0ddc43ec81573c409bc64 (patch)
treeec6faf1f4e72496e9cc53135a2420131d3771874 /lang/js/BrowserTestExtension/rununittests.js
parentMerge branch 'master' into javascript-binding (diff)
downloadgpgme-c92326cc257cf7c8b6c0ddc43ec81573c409bc64.tar.gz
gpgme-c92326cc257cf7c8b6c0ddc43ec81573c409bc64.zip
js: more testing of nativeMessaging connection
-- * There were some inconsistencies between utf-8, transfer and browsers' utf16, which broke characters that were split between individual messages. src/Connection now contains a workaround that reassembles javascripts' format from passed base64 strings. This needs someone more experienced looking. * Added several new tests which were failing during initial debugging of this issue * reorganized BrowsertestExtension to avoid cluttering.
Diffstat (limited to 'lang/js/BrowserTestExtension/rununittests.js')
-rw-r--r--lang/js/BrowserTestExtension/rununittests.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/js/BrowserTestExtension/rununittests.js b/lang/js/BrowserTestExtension/rununittests.js
new file mode 100644
index 00000000..f85ed8b5
--- /dev/null
+++ b/lang/js/BrowserTestExtension/rununittests.js
@@ -0,0 +1,21 @@
+/* gpgme.js - Javascript integration for gpgme
+ * Copyright (C) 2018 Bundesamt für Sicherheit in der Informationstechnik
+ *
+ * This file is part of GPGME.
+ *
+ * GPGME is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * GPGME is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, see <http://www.gnu.org/licenses/>.
+ * SPDX-License-Identifier: LGPL-2.1+
+ */
+Gpgmejs_test.unittests();
+mocha.run();