mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: Add basic tests for the TUI
The tests use `termopen` to spawn nvim and verify the TUI.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user