diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-02-28 06:24:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 06:24:23 -0500 |
commit | 3b927762264c27aaeb31b83ba2e4924d5312ddcc (patch) | |
tree | 0c8252f2636b84b8387cfbe1754bb7a6928bd4ca /test/functional/terminal/tui_spec.lua | |
parent | a87b52d328d5f78965d6eaff7efab7b63069bdc0 (diff) | |
parent | ce597235a26839826de88ecd8b949ec54c310fbd (diff) | |
download | rneovim-3b927762264c27aaeb31b83ba2e4924d5312ddcc.tar.gz rneovim-3b927762264c27aaeb31b83ba2e4924d5312ddcc.tar.bz2 rneovim-3b927762264c27aaeb31b83ba2e4924d5312ddcc.zip |
Merge #22382 has('gui_running')
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 39 |
1 files changed, 28 insertions, 11 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index bbcf5ecad7..069fbad803 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -1398,17 +1398,34 @@ describe('TUI', function() ]]} end) - it('is included in nvim_list_uis()', function() - feed_data(':echo map(nvim_list_uis(), {k,v -> sort(items(filter(v, {k,v -> k[:3] !=# "ext_" })))})\r') - screen:expect([=[ - | - {4:~ }| - {5: }| - [[['chan', 1], ['height', 6], ['override', v:false| - ], ['rgb', v:false], ['width', 50]]] | - {10:Press ENTER or type command to continue}{1: } | - {3:-- TERMINAL --} | - ]=]) + it('in nvim_list_uis()', function() + -- $TERM in :terminal. + local exp_term = is_os('bsd') and 'builtin_xterm' or 'xterm-256color' + local expected = { + { + chan = 1, + ext_cmdline = false, + ext_hlstate = false, + ext_linegrid = true, + ext_messages = false, + ext_multigrid = false, + ext_popupmenu = false, + ext_tabline = false, + ext_termcolors = true, + ext_wildmenu = false, + height = 6, + override = false, + rgb = false, + stdin_tty = true, + stdout_tty = true, + term_background = '', + term_colors = 256, + term_name = exp_term, + width = 50 + }, + } + local _, rv = child_session:request('nvim_list_uis') + eq(expected, rv) end) it('allows grid to assume wider ambiguous-width characters than host terminal #19686', function() |