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

@@ -12,22 +12,21 @@ describe('normal', function()
function()
local screen = Screen.new(40, 19)
screen:attach()
screen:set_default_attr_ids({ { foreground = Screen.colors.Brown } })
exec([[
set number foldmethod=diff scrolloff=0
call setline(1, map(range(1, 9), 'repeat(v:val, 200)'))
norm Lj
]])
screen:expect([[
{1: 2 }222222222222222222222222222222222222|
{1: }222222222222222222222222222222222222|*4
{1: }22222222222222222222 |
{1: 3 }333333333333333333333333333333333333|
{1: }333333333333333333333333333333333333|*4
{1: }33333333333333333333 |
{1: 4 }^444444444444444444444444444444444444|
{1: }444444444444444444444444444444444444|*4
{1: }44444444444444444444 |
{8: 2 }222222222222222222222222222222222222|
{8: }222222222222222222222222222222222222|*4
{8: }22222222222222222222 |
{8: 3 }333333333333333333333333333333333333|
{8: }333333333333333333333333333333333333|*4
{8: }33333333333333333333 |
{8: 4 }^444444444444444444444444444444444444|
{8: }444444444444444444444444444444444444|*4
{8: }44444444444444444444 |
|
]])
end