mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
refactor(tests): more global highlight definitions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user