refactor(tests): continue the global highlight definition work

This commit is contained in:
bfredl
2024-11-08 11:45:55 +01:00
parent 8ab1903092
commit abe6a07c54
6 changed files with 206 additions and 254 deletions

View File

@@ -193,13 +193,6 @@ describe('eval-API', function()
it('are highlighted by vim.vim syntax file', function()
local screen = Screen.new(40, 8)
screen:attach()
screen:set_default_attr_ids({
[1] = { bold = true, foreground = Screen.colors.Brown },
[2] = { foreground = Screen.colors.DarkCyan },
[3] = { foreground = Screen.colors.SlateBlue },
[4] = { foreground = Screen.colors.Fuchsia },
[5] = { bold = true, foreground = Screen.colors.Blue },
})
command('set ft=vim')
command('set rtp^=build/runtime/')
@@ -210,10 +203,10 @@ describe('eval-API', function()
call not_a_function(42)]])
screen:expect([[
{1:call} {2:bufnr}{3:(}{4:'%'}{3:)} |
{1:call} {2:nvim_input}{3:(}{4:'typing...'}{3:)} |
{1:call} not_a_function{3:(}{4:42}{3:^)} |
{5:~ }|*4
{15:call} {25:bufnr}{16:(}{26:'%'}{16:)} |
{15:call} {25:nvim_input}{16:(}{26:'typing...'}{16:)} |
{15:call} not_a_function{16:(}{26:42}{16:^)} |
{1:~ }|*4
|
]])
end)