diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-09 23:31:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-09 23:31:30 +0200 |
commit | d818135e3f45fc72ceba19c0ffc035ed77d120af (patch) | |
tree | 83fc23b9a1f8489baa073559e48dab23fcc59dae /test | |
parent | b6ad20602498e260b3c7ede79699d986e96903da (diff) | |
parent | b9ad12e6c2fa557e2c2c2f2f6c40fabc0cc89efd (diff) | |
download | rneovim-d818135e3f45fc72ceba19c0ffc035ed77d120af.tar.gz rneovim-d818135e3f45fc72ceba19c0ffc035ed77d120af.tar.bz2 rneovim-d818135e3f45fc72ceba19c0ffc035ed77d120af.zip |
Merge #9992 from justinmk/ui-upgrade
UI/nvim_ui_attach(): add "override" option
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/api/vim_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index c508ca37db..2178abab53 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1284,7 +1284,7 @@ describe('API', function() end) it('returns attached UIs', function() local screen = Screen.new(20, 4) - screen:attach() + screen:attach({override=true}) local expected = { { chan = 1, @@ -1299,6 +1299,7 @@ describe('API', function() ext_messages = false, height = 4, rgb = true, + override = true, width = 20, } } @@ -1308,6 +1309,7 @@ describe('API', function() screen = Screen.new(44, 99) screen:attach({ rgb = false }) expected[1].rgb = false + expected[1].override = false expected[1].width = 44 expected[1].height = 99 eq(expected, nvim("list_uis")) diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 9d0eb5e40e..469d088c57 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -255,14 +255,14 @@ describe('TUI', function() ]]) end) - it('shows up in nvim_list_uis', function() + 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_" })))})\013') screen:expect([=[ | {4:~ }| {5: }| - [[['height', 6], ['rgb', v:false], ['width', 50]]]| - | + [[['height', 6], ['override', v:false], ['rgb', v:| + false], ['width', 50]]] | {10:Press ENTER or type command to continue}{1: } | {3:-- TERMINAL --} | ]=]) |