Skip to content
Snippets Groups Projects

XX-4050 / Send E2E test

Merged Jono Wenger requested to merge XX-4050/sendE2eTest into release
3 files
+ 36
20
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -31,6 +31,7 @@
// Get element to print log messages to
const logOutput = document.getElementById("logOutput")
const htmlConsole = newHtmlConsole(logOutput)
// Get button that will stop the network follower
const stopNetworkFollowerBtn = document.getElementById("stopNetworkFollowerBtn")
@@ -38,15 +39,19 @@
// Client specific parameters
const recipientContactFile = '';
const myContactFileName = 'receiverContact.xxc';
const statePath = 'statePathRecipient';
const statePath = 'statePathRecipient2';
const statePass = 'password';
document.getElementById('ndfInput').addEventListener('change', e => {
let reader = new FileReader();
reader.onload = function (e) {
SendE2e(logOutput, stopNetworkFollowerBtn, e.target.result,
recipientContactFile, myContactFileName, statePath,
statePass);
reader.onload = async function (e) {
try {
await SendE2e(htmlConsole, stopNetworkFollowerBtn,
e.target.result, recipientContactFile,
myContactFileName, statePath, statePass);
} catch (e) {
htmlConsole.error(e)
}
};
reader.readAsText(e.target.files[0]);
}, false);
Loading