diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-25 19:00:35 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-07-18 14:08:44 +0200 |
commit | be3d2f512528f8a99acc262ead8b88d38153759d (patch) | |
tree | 4668f9883bff87e860e35ca296e39a9ac6055445 /test/functional/ui/options_spec.lua | |
parent | 45bee1dafd0d4042f3b22928b5cc6021a1772bb7 (diff) | |
download | rneovim-be3d2f512528f8a99acc262ead8b88d38153759d.tar.gz rneovim-be3d2f512528f8a99acc262ead8b88d38153759d.tar.bz2 rneovim-be3d2f512528f8a99acc262ead8b88d38153759d.zip |
perf(ui): avoid ui_flush() work in headless mode
Diffstat (limited to 'test/functional/ui/options_spec.lua')
-rw-r--r-- | test/functional/ui/options_spec.lua | 9 |
1 files changed, 8 insertions, 1 deletions
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() |