Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/betaflight/betaflight-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCleric-K <9365881+Cleric-K@users.noreply.github.com>2019-03-24 02:21:52 +0300
committerCleric-K <9365881+Cleric-K@users.noreply.github.com>2019-04-15 14:45:53 +0300
commitf96fc0eec38245479e4bfb6973e3f64da925174d (patch)
tree687e3ee5f198dace8562ac65ec2a0f0d7e815fed /test
parentd912de75f16b93a7151ff4b03bc399209854bdf4 (diff)
CLI Client-side Autocomplete
Executes silently various commands on CLI open. Parses the output and build autocomplete cache. Autcomplete hints are displayed in popup lists.
Diffstat (limited to 'test')
-rw-r--r--test/karma.conf.js2
-rw-r--r--test/tabs/cli.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/karma.conf.js b/test/karma.conf.js
index ed7b44c5..497a2720 100644
--- a/test/karma.conf.js
+++ b/test/karma.conf.js
@@ -9,6 +9,8 @@ module.exports = function(config) {
'./src/js/data_storage.js',
'./src/js/localization.js',
'./src/js/gui.js',
+ './node_modules/jquery-textcomplete/dist/jquery.textcomplete.min.js',
+ './src/js/CliAutoComplete.js',
'./src/js/tabs/cli.js',
'./test/**/*.js'
],
diff --git a/test/tabs/cli.js b/test/tabs/cli.js
index a16ea092..c953b12b 100644
--- a/test/tabs/cli.js
+++ b/test/tabs/cli.js
@@ -19,6 +19,8 @@ describe('TABS.cli', () => {
cliTab.append($('<div>').addClass('window').append(cliOutput));
cliTab.append(cliPrompt);
+ CliAutoComplete.setEnabled(false); // not testing the client-side autocomplete
+
before(() => {
$('body')
.append(cliTab);