mirror of
https://github.com/neovim/neovim.git
synced 2026-02-21 10:56:50 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user