mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
tests: don't ignore highlights in various tests
This commit is contained in:
@@ -213,22 +213,22 @@ describe('vim_* functions', function()
|
||||
screen = Screen.new(40, 8)
|
||||
screen:attach()
|
||||
screen:set_default_attr_ids({
|
||||
[0] = {bold=true, foreground=Screen.colors.Blue},
|
||||
[1] = {foreground = Screen.colors.White, background = Screen.colors.Red},
|
||||
[2] = {bold = true, foreground = Screen.colors.SeaGreen}
|
||||
})
|
||||
screen:set_default_attr_ignore( {{bold=true, foreground=Screen.colors.Blue}} )
|
||||
end)
|
||||
|
||||
it('can show one line', function()
|
||||
nvim_async('err_write', 'has bork\n')
|
||||
screen:expect([[
|
||||
^ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:has bork} |
|
||||
]])
|
||||
end)
|
||||
@@ -236,11 +236,11 @@ describe('vim_* functions', function()
|
||||
it('shows return prompt when more than &cmdheight lines', function()
|
||||
nvim_async('err_write', 'something happened\nvery bad\n')
|
||||
screen:expect([[
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:something happened} |
|
||||
{1:very bad} |
|
||||
{2:Press ENTER or type command to continue}^ |
|
||||
@@ -250,9 +250,9 @@ describe('vim_* functions', function()
|
||||
it('shows return prompt after all lines are shown', function()
|
||||
nvim_async('err_write', 'FAILURE\nERROR\nEXCEPTION\nTRACEBACK\n')
|
||||
screen:expect([[
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:FAILURE} |
|
||||
{1:ERROR} |
|
||||
{1:EXCEPTION} |
|
||||
@@ -267,12 +267,12 @@ describe('vim_* functions', function()
|
||||
nvim_async('err_write', 'fail\n')
|
||||
screen:expect([[
|
||||
^ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:very fail} |
|
||||
]])
|
||||
helpers.wait()
|
||||
@@ -280,11 +280,11 @@ describe('vim_* functions', function()
|
||||
-- shows up to &cmdheight lines
|
||||
nvim_async('err_write', 'more fail\ntoo fail\n')
|
||||
screen:expect([[
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:more fail} |
|
||||
{1:too fail} |
|
||||
{2:Press ENTER or type command to continue}^ |
|
||||
|
||||
Reference in New Issue
Block a user