mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 10:26:42 +10:00
refactor(tests): use global defaults instead of set_default_attr_ids (2)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user