test: tui_spec.lua: relax test (#8289)

Sometimes an extra FocusGained/FocusLost event might trigger. This
doesn't matter, we just want to test that the events were received in
cmdline-mode.
This commit is contained in:
Justin M. Keyes
2018-04-16 23:35:58 +02:00
committed by GitHub
parent 0cec184cd6
commit 48967695c4

View File

@@ -387,15 +387,7 @@ describe('tui FocusGained/FocusLost', function()
-- Exit cmdline-mode. Redraws from timers/events are blocked during
-- cmdline-mode, so the buffer won't be updated until we exit cmdline-mode.
feed_data('\n')
screen:expect([[
{1: } |
lost |
gained |
{4:~ }|
{5:[No Name] [+] }|
: |
{3:-- TERMINAL --} |
]])
screen:expect('lost'..(' '):rep(46)..'\ngained', nil, nil, nil, true)
end)
end)