diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-07-19 13:08:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 13:08:11 +0200 |
commit | 101fd04ee2036b125a93f3e71dbaa4ae6917ce8b (patch) | |
tree | 424ebcabeecf4c0e88cb5b7b7cb6e407bc11de63 /test/functional/ui | |
parent | 93bd6fb2c8e1f68a48169a63caae1fc0b4797a8a (diff) | |
parent | f87c8245133dd8116a9bab2d2e89f9b26967c7a8 (diff) | |
download | rneovim-101fd04ee2036b125a93f3e71dbaa4ae6917ce8b.tar.gz rneovim-101fd04ee2036b125a93f3e71dbaa4ae6917ce8b.tar.bz2 rneovim-101fd04ee2036b125a93f3e71dbaa4ae6917ce8b.zip |
Merge pull request #19409 from bfredl/uiunpack
perf(ui): some ui_client fixes/optimizations before externalized TUI
Diffstat (limited to 'test/functional/ui')
-rw-r--r-- | test/functional/ui/cursor_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/ui/options_spec.lua | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua index a1423c98a8..03cd4bfd06 100644 --- a/test/functional/ui/cursor_spec.lua +++ b/test/functional/ui/cursor_spec.lua @@ -215,7 +215,7 @@ describe('ui/cursor', function() m.hl_id = 60 m.attr = {background = Screen.colors.DarkGray} end - if m.id_lm then m.id_lm = 65 end + if m.id_lm then m.id_lm = 61 end end -- Assert the new expectation. diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua index c2b0bcdb64..8d7c404637 100644 --- a/test/functional/ui/options_spec.lua +++ b/test/functional/ui/options_spec.lua @@ -51,7 +51,7 @@ describe('UI receives option updates', function() end) it('on attach #11372', function() - clear() + clear{args_rm={'--headless'}} local evs = {} screen = Screen.new(20,5) -- Override mouse_on/mouse_off handlers. @@ -88,6 +88,13 @@ describe('UI receives option updates', function() eq(expected, screen.options) end) + command("set pumblend=50") + expected.pumblend = 50 + screen:expect(function() + eq(expected, screen.options) + end) + + -- check handling of out-of-bounds value command("set pumblend=-1") expected.pumblend = 0 screen:expect(function() |