js: add configuration option on startup
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Wed, 19 Sep 2018 08:56:36 +0000 (10:56 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Wed, 19 Sep 2018 08:56:36 +0000 (10:56 +0200)
commit7f149586062ebae8114f64078771cb25579f5003
treeafb8f87c0a8195ce8cf320115edc80019c9fd0af
parent362caaf02f3a25b7e626572aa30b87771c2c8f4d
js: add configuration option on startup

--

* src/index.js: Added an optional configuration object for the startup.

* configuration: timeout - the initial check for a connection ran into
  timeouts on slower testing machines. 500ms for initial startup is
  not sufficient everywhere. The default timeout was raised to 1000ms,
  and as an option this timeout can be increased even further.

* BrowsertestExtension: Set the initial connection timeouts to 2
  seconds, to be able to test on slower machines.
12 files changed:
lang/js/BrowserTestExtension/tests/KeyImportExport.js
lang/js/BrowserTestExtension/tests/KeyInfos.js
lang/js/BrowserTestExtension/tests/decryptTest.js
lang/js/BrowserTestExtension/tests/encryptDecryptTest.js
lang/js/BrowserTestExtension/tests/encryptTest.js
lang/js/BrowserTestExtension/tests/longRunningTests.js
lang/js/BrowserTestExtension/tests/signTest.js
lang/js/BrowserTestExtension/tests/startup.js
lang/js/BrowserTestExtension/tests/verifyTest.js
lang/js/src/Connection.js
lang/js/src/index.js
lang/js/unittests.js