aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-10-01 15:03:40 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-10-01 15:22:49 -0300
commit5d185c77726dfff20b87d97897d2bb237e95d95a (patch)
tree40873cf933b5ba5cff44d1ea07db2b3f2663020e /test/functional/ui/screen.lua
parent2182cd6081af283d3f08c434d00cc634b492033e (diff)
downloadrneovim-5d185c77726dfff20b87d97897d2bb237e95d95a.tar.gz
rneovim-5d185c77726dfff20b87d97897d2bb237e95d95a.tar.bz2
rneovim-5d185c77726dfff20b87d97897d2bb237e95d95a.zip
test: Add basic tests for the TUI
The tests use `termopen` to spawn nvim and verify the TUI.
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 08c4bfae0b..1be83d745e 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -163,6 +163,7 @@ function Screen.new(width, height)
height = 14
end
local self = setmetatable({
+ timeout = default_screen_timeout,
title = '',
icon = '',
bell = false,
@@ -248,7 +249,7 @@ function Screen:wait(check, timeout)
return true
end
- run(nil, notification_cb, nil, timeout or default_screen_timeout)
+ run(nil, notification_cb, nil, timeout or self.timeout)
if not checked then
err = check()
end