diff options
author | Cleric-K <9365881+Cleric-K@users.noreply.github.com> | 2019-03-24 02:21:52 +0300 |
---|---|---|
committer | Cleric-K <9365881+Cleric-K@users.noreply.github.com> | 2019-04-15 14:45:53 +0300 |
commit | f96fc0eec38245479e4bfb6973e3f64da925174d (patch) | |
tree | 687e3ee5f198dace8562ac65ec2a0f0d7e815fed /test | |
parent | d912de75f16b93a7151ff4b03bc399209854bdf4 (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.js | 2 | ||||
-rw-r--r-- | test/tabs/cli.js | 2 |
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); |