aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/messages_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-06-03 00:08:32 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-06-03 00:08:32 +0200
commitc0134660aba0d635845c217a4aaf3837d085665f (patch)
treeb1c425366327a33cfb5ca2f5ac5f510960844ba5 /test/functional/ui/messages_spec.lua
parent40218d118030d0104ede11ad2956ef150e9a7573 (diff)
downloadrneovim-c0134660aba0d635845c217a4aaf3837d085665f.tar.gz
rneovim-c0134660aba0d635845c217a4aaf3837d085665f.tar.bz2
rneovim-c0134660aba0d635845c217a4aaf3837d085665f.zip
test: avoid some boilerplate
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r--test/functional/ui/messages_spec.lua17
1 files changed, 4 insertions, 13 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 730c77c2ba..42a70c9f6a 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -703,23 +703,14 @@ describe('ui/ext_messages', function()
end
end}
end)
-end)
-describe('ui/ext_messages', function()
- local screen
- before_each(function()
- clear()
+ it('wildmode=list', function()
+ local default_attr = screen:get_default_attr_ids()
+ screen:detach()
screen = Screen.new(25, 7)
screen:attach({rgb=true, ext_messages=true})
- screen:set_default_attr_ids({
- [1] = {bold = true, foreground = Screen.colors.Blue1},
- [2] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red},
- [3] = {bold = true, reverse = true},
- [4] = {bold = true, foreground = Screen.colors.SeaGreen4},
- })
- end)
+ screen:set_default_attr_ids(default_attr)
- it('wildmode=list', function()
command('set wildmenu wildmode=list')
feed(':set wildm<tab>')
screen:expect{grid=[[