refactor(tests): more global highlight definitions

This commit is contained in:
bfredl
2024-05-26 09:34:29 +02:00
parent 05a65432b6
commit b90d7c36cf
6 changed files with 319 additions and 353 deletions

View File

@@ -102,14 +102,9 @@ describe('tabpage', function()
it('switching tabpage after setting laststatus=3 #19591', function()
local screen = Screen.new(40, 8)
screen:set_default_attr_ids({
[0] = { bold = true, foreground = Screen.colors.Blue },
[1] = { bold = true, reverse = true }, -- StatusLine
[2] = { reverse = true }, -- TabLineFill
[3] = { bold = true }, -- TabLineSel
[4] = { background = Screen.colors.LightGrey, underline = true }, -- TabLine
[5] = { bold = true, foreground = Screen.colors.Magenta },
})
screen:add_extra_attr_ids {
[100] = { bold = true, foreground = Screen.colors.Fuchsia },
}
screen:attach()
command('tabnew')
@@ -118,18 +113,18 @@ describe('tabpage', function()
command('tabnext')
feed('<C-G>')
screen:expect([[
{4: [No Name] }{3: [No Name] }{2: }{4:X}|
{24: [No Name] }{5: [No Name] }{2: }{24:X}|
^ |
{0:~ }|*4
{1:[No Name] }|
{1:~ }|*4
{3:[No Name] }|
"[No Name]" --No lines in buffer-- |
]])
command('vnew')
screen:expect([[
{4: [No Name] }{3: }{5:2}{3: [No Name] }{2: }{4:X}|
{24: [No Name] }{5: }{100:2}{5: [No Name] }{2: }{24:X}|
^ │ |
{0:~ }│{0:~ }|*4
{1:[No Name] }|
{1:~ }│{1:~ }|*4
{3:[No Name] }|
"[No Name]" --No lines in buffer-- |
]])
end)