mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
tests: improve robustness of immediate successes in screen tests
This commit is contained in:
@@ -267,7 +267,7 @@ describe('Command-line coloring', function()
|
||||
:echo {RBP1:(}{RBP2:(}42{RBP2:)}^ |
|
||||
]])
|
||||
redraw_input()
|
||||
screen:expect([[
|
||||
screen:expect{grid=[[
|
||||
|
|
||||
{EOB:~ }|
|
||||
{EOB:~ }|
|
||||
@@ -276,7 +276,7 @@ describe('Command-line coloring', function()
|
||||
{EOB:~ }|
|
||||
{EOB:~ }|
|
||||
:echo {RBP1:(}{RBP2:(}42{RBP2:)}^ |
|
||||
]])
|
||||
]], reset=true}
|
||||
end)
|
||||
for _, func_part in ipairs({'', 'n', 'msg'}) do
|
||||
it('disables :echo' .. func_part .. ' messages', function()
|
||||
@@ -855,17 +855,6 @@ describe('Ex commands coloring support', function()
|
||||
{EOB:~ }|
|
||||
|
|
||||
]])
|
||||
feed('<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{EOB:~ }|
|
||||
{EOB:~ }|
|
||||
{EOB:~ }|
|
||||
{EOB:~ }|
|
||||
{EOB:~ }|
|
||||
{EOB:~ }|
|
||||
|
|
||||
]])
|
||||
eq('Error detected while processing :\nE605: Exception not caught: 42',
|
||||
meths.command_output('messages'))
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user