refactor(tests): again yet more global highlight definitions

This commit is contained in:
bfredl
2024-08-14 13:42:05 +02:00
parent 9d74dc3ac5
commit ef4c9b136e
9 changed files with 139 additions and 231 deletions

View File

@@ -43,11 +43,9 @@ describe(':autocmd', function()
it('should not show group information if interrupted', function()
local screen = Screen.new(50, 6)
screen:set_default_attr_ids({
[1] = { bold = true, foreground = Screen.colors.Blue1 }, -- NonText
[2] = { bold = true, foreground = Screen.colors.SeaGreen }, -- MoreMsg
[3] = { bold = true, foreground = Screen.colors.Magenta }, -- Title
})
screen:add_extra_attr_ids {
[100] = { foreground = Screen.colors.Magenta, bold = true },
}
screen:attach()
exec([[
set more
@@ -73,11 +71,11 @@ describe(':autocmd', function()
feed(':autocmd<CR>')
screen:expect([[
:autocmd |
{3:--- Autocommands ---} |
{3:test_1} {3:BufEnter} |
{100:--- Autocommands ---} |
{100:test_1} {100:BufEnter} |
A echo 'A' |
B echo 'B' |
{2:-- More --}^ |
{6:-- More --}^ |
]])
feed('q')
screen:expect([[