mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 01:09:56 +10:00
refactor(tests): again yet more global highlight definitions
This commit is contained in:
@@ -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([[
|
||||
|
||||
Reference in New Issue
Block a user