From c92326cc257cf7c8b6c0ddc43ec81573c409bc64 Mon Sep 17 00:00:00 2001
From: Maximilian Krambach
Date: Wed, 9 May 2018 19:40:57 +0200
Subject: 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.
---
lang/js/BrowserTestExtension/index.html | 40 +++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 lang/js/BrowserTestExtension/index.html
(limited to 'lang/js/BrowserTestExtension/index.html')
diff --git a/lang/js/BrowserTestExtension/index.html b/lang/js/BrowserTestExtension/index.html
new file mode 100644
index 00000000..05d413ba
--- /dev/null
+++ b/lang/js/BrowserTestExtension/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
gpgmejs - Tests
+
+ The unittests rely on a separately packaged version of gpgmejs,
+ with the different classes and functions exposed. These tests and their
+ input values can be found in gpgme/lang/js/test. They do not test the
+ overall functionality, but the individual behaviour of the components.
+
+ The functionality tests, to be found in
+ gpgme/lang/js/BrowserTestExtension, check the overall functionality of
+ the standard packaged version of gpgmejs.
+
+
+
+
--
cgit
From 987b31746809dfe04966e37edd759a448a28d975 Mon Sep 17 00:00:00 2001
From: Maximilian Krambach
Date: Mon, 14 May 2018 16:23:24 +0200
Subject: 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
---
lang/js/BrowserTestExtension/index.html | 7 +
lang/js/BrowserTestExtension/openpgpModeTest.html | 23 +++
.../tests/encryptDecryptTest.js | 21 +--
.../tests/inputValues_openpgpjs.js | 32 ++++
lang/js/BrowserTestExtension/tests/inputvalues.js | 131 +++-----------
.../BrowserTestExtension/tests/longRunningTests.js | 1 +
.../BrowserTestExtension/tests/openpgpModeTest.js | 196 +++++++++++++++++++++
lang/js/src/Connection.js | 1 -
lang/js/src/gpgmejs.js | 18 +-
lang/js/src/gpgmejs_openpgpjs.js | 77 ++++----
10 files changed, 346 insertions(+), 161 deletions(-)
create mode 100644 lang/js/BrowserTestExtension/openpgpModeTest.html
create mode 100644 lang/js/BrowserTestExtension/tests/inputValues_openpgpjs.js
create mode 100644 lang/js/BrowserTestExtension/tests/openpgpModeTest.js
(limited to 'lang/js/BrowserTestExtension/index.html')
diff --git a/lang/js/BrowserTestExtension/index.html b/lang/js/BrowserTestExtension/index.html
index 05d413ba..c49aedae 100644
--- a/lang/js/BrowserTestExtension/index.html
+++ b/lang/js/BrowserTestExtension/index.html
@@ -34,6 +34,13 @@
Functionality tests with larger/longer running data sets.
+
+
+ Testing openPGP mode.
+ - Please notice that, due to comparing
+ the inputs and outputs with openpgpjs objects, this test
+ requires a copy of openpgpjs in libs.
+