tests: improve robustness of immediate successes in screen tests

This commit is contained in:
Björn Linse
2017-06-26 14:49:15 +02:00
parent 8fd092f3ff
commit c8810a51a3
20 changed files with 314 additions and 147 deletions

View File

@@ -150,13 +150,13 @@ describe('input()', function()
{T:Foo>}Bar^ |
]])
command('redraw!')
screen:expect([[
screen:expect{grid=[[
|
{EOB:~ }|
{EOB:~ }|
{EOB:~ }|
{T:Foo>}Bar^ |
]])
]], reset=true}
feed('<BS>')
screen:expect([[
|
@@ -166,13 +166,13 @@ describe('input()', function()
{T:Foo>}Ba^ |
]])
command('redraw!')
screen:expect([[
screen:expect{grid=[[
|
{EOB:~ }|
{EOB:~ }|
{EOB:~ }|
{T:Foo>}Ba^ |
]])
]], reset=true}
end)
it('allows omitting everything with dictionary argument', function()
command('echohl Test')
@@ -348,13 +348,13 @@ describe('inputdialog()', function()
{T:Foo>}Bar^ |
]])
command('redraw!')
screen:expect([[
screen:expect{grid=[[
|
{EOB:~ }|
{EOB:~ }|
{EOB:~ }|
{T:Foo>}Bar^ |
]])
]], reset=true}
feed('<BS>')
screen:expect([[
|
@@ -364,13 +364,13 @@ describe('inputdialog()', function()
{T:Foo>}Ba^ |
]])
command('redraw!')
screen:expect([[
screen:expect{grid=[[
|
{EOB:~ }|
{EOB:~ }|
{EOB:~ }|
{T:Foo>}Ba^ |
]])
]], reset=true}
end)
it('allows omitting everything with dictionary argument', function()
command('echohl Test')