diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-04-03 13:39:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 13:39:08 +0200 |
commit | 1b55ed58ecaba96f91a21685b7019362320ea156 (patch) | |
tree | 34ebd294c4b92819f0305f75e69134a706b67bbc /test/functional/ui/popupmenu_spec.lua | |
parent | dbc0fa9bd6831ea060df410b70de32627c5c1f68 (diff) | |
parent | fa74f7571094dba15a7e8e216beef11786cff203 (diff) | |
download | rneovim-1b55ed58ecaba96f91a21685b7019362320ea156.tar.gz rneovim-1b55ed58ecaba96f91a21685b7019362320ea156.tar.bz2 rneovim-1b55ed58ecaba96f91a21685b7019362320ea156.zip |
Merge pull request #28156 from bfredl/attr_extend
refactor(tests): allow to extend the new base set of attrs
Diffstat (limited to 'test/functional/ui/popupmenu_spec.lua')
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index 9c0d316795..c1cb2b62be 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -1171,6 +1171,10 @@ describe('builtin popupmenu', function() [6] = { foreground = Screen.colors.Grey100, background = Screen.colors.Red }, [7] = { background = Screen.colors.Yellow }, -- Search [8] = { foreground = Screen.colors.Red }, + kn = { foreground = Screen.colors.Red, background = Screen.colors.Magenta }, + ks = { foreground = Screen.colors.Red, background = Screen.colors.Grey }, + xn = { foreground = Screen.colors.White, background = Screen.colors.Magenta }, + xs = { foreground = Screen.colors.Black, background = Screen.colors.Grey }, }) screen:attach({ ext_multigrid = multigrid }) end) @@ -4477,23 +4481,15 @@ describe('builtin popupmenu', function() hi PmenuExtra guifg=White guibg=Magenta hi PmenuExtraSel guifg=Black guibg=Grey ]]) - local attrs = screen:get_default_attr_ids() - attrs.kn = { foreground = Screen.colors.Red, background = Screen.colors.Magenta } - attrs.ks = { foreground = Screen.colors.Red, background = Screen.colors.Grey } - attrs.xn = { foreground = Screen.colors.White, background = Screen.colors.Magenta } - attrs.xs = { foreground = Screen.colors.Black, background = Screen.colors.Grey } feed('iaw<C-X><C-u>') - screen:expect( - [[ + screen:expect([[ aword1^ | {s:aword1 }{ks:W }{xs:extra text 1 }{1: }| {n:aword2 }{kn:W }{xn:extra text 2 }{1: }| {n:aword3 }{kn:W }{xn:extra text 3 }{1: }| {1:~ }|*3 {2:-- }{5:match 1 of 3} | - ]], - attrs - ) + ]]) end) end) end |