aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index a6b7fb2997..77b69041e0 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -73,6 +73,8 @@
local helpers = require('test.functional.helpers')(nil)
local request, run, uimeths = helpers.request, helpers.run, helpers.uimeths
+local iswin, nvim, retry = helpers.iswin, helpers.nvim, helpers.retry
+
local dedent = helpers.dedent
local Screen = {}
@@ -259,6 +261,17 @@ screen:redraw_debug() to show all intermediate screen states. ]])
end)
end
+function Screen:expect_after_resize(expected)
+ if iswin() then
+ retry(nil, nil, function()
+ nvim('command', 'call jobsend(b:terminal_job_id, "\\<C-q>")')
+ self:expect(expected)
+ end)
+ else
+ self:expect(expected)
+ end
+end
+
function Screen:wait(check, timeout)
local err, checked = false
local success_seen = false