mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 13:27:43 +00:00
refactor(tests): use global defaults instead of set_default_attr_ids (2)
This commit is contained in:
@@ -99,11 +99,6 @@ describe('Visual selection highlight', function()
|
||||
-- oldtest: Test_visual_sbr()
|
||||
it("when 'showbreak' is set", function()
|
||||
local screen = Screen.new(60, 6)
|
||||
screen:set_default_attr_ids({
|
||||
[0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
|
||||
[1] = { background = Screen.colors.LightGrey, foreground = Screen.colors.Black }, -- Visual
|
||||
[2] = { bold = true }, -- ModeMsg
|
||||
})
|
||||
screen:attach()
|
||||
exec([[
|
||||
set showbreak=>
|
||||
@@ -112,9 +107,9 @@ describe('Visual selection highlight', function()
|
||||
]])
|
||||
feed('v$')
|
||||
screen:expect([[
|
||||
{0:>}{1:n, no sea takimata sanctus est Lorem ipsum dolor sit amet.}^ |
|
||||
{1:>}{17:n, no sea takimata sanctus est Lorem ipsum dolor sit amet.}^ |
|
||||
|*4
|
||||
{2:-- VISUAL --} |
|
||||
{5:-- VISUAL --} |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user