refactor(tests): use global defaults instead of set_default_attr_ids (2)

This commit is contained in:
bfredl
2024-03-27 10:35:50 +01:00
parent 63f7b1f31e
commit b556bd1a53
30 changed files with 580 additions and 857 deletions

View File

@@ -745,11 +745,6 @@ describe('Search highlight', function()
-- oldtest: Test_hlsearch_dump()
it('beyond line end vim-patch:8.2.2542', function()
local screen = Screen.new(50, 6)
screen:set_default_attr_ids({
[1] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
[2] = { background = Screen.colors.Yellow }, -- Search
[3] = { background = Screen.colors.Grey90 }, -- CursorLine
})
screen:attach()
exec([[
set hlsearch noincsearch cursorline
@@ -759,8 +754,8 @@ describe('Search highlight', function()
]])
feed([[/\_.*<CR>]])
screen:expect([[
{2:xxx } |*2
{2:^xxx }{3: }|
{10:xxx } |*2
{10:^xxx }{21: }|
{1:~ }|*2
/\_.* |
]])