aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-04-16 23:35:58 +0200
committerGitHub <noreply@github.com>2018-04-16 23:35:58 +0200
commit48967695c441d13bc9faa8aae4bed8d6fb5bdc14 (patch)
treef2ce366972106104a80f9b15e51204da09552a49
parent0cec184cd64323e7865ee17ea3e1213f9d02c969 (diff)
downloadrneovim-48967695c441d13bc9faa8aae4bed8d6fb5bdc14.tar.gz
rneovim-48967695c441d13bc9faa8aae4bed8d6fb5bdc14.tar.bz2
rneovim-48967695c441d13bc9faa8aae4bed8d6fb5bdc14.zip
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.
-rw-r--r--test/functional/terminal/tui_spec.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 2f9abfd3f6..0ae5802a01 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -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)