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

@@ -10,9 +10,6 @@ describe(':move', function()
-- oldtest: Test_move_undo()
it('redraws correctly when undone', function()
local screen = Screen.new(60, 10)
screen:set_default_attr_ids({
[0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
})
screen:attach()
fn.setline(1, { 'First', 'Second', 'Third', 'Fourth' })
@@ -22,7 +19,7 @@ describe(':move', function()
^First |
Third |
Fourth |
{0:~ }|*5
{1:~ }|*5
:move +1 |
]])
@@ -34,7 +31,7 @@ describe(':move', function()
Second |
Third |
Fourth |
{0:~ }|*5
{1:~ }|*5
|
]])
end)