mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test/tui_spec: connect to child session
This commit is contained in:
parent
517bf99ddb
commit
1fdae25b2b
@ -25,12 +25,14 @@ if helpers.pending_win32(pending) then return end
|
|||||||
|
|
||||||
describe('TUI', function()
|
describe('TUI', function()
|
||||||
local screen
|
local screen
|
||||||
|
local child_session
|
||||||
|
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
clear()
|
||||||
screen = thelpers.screen_setup(0, '["'..nvim_prog
|
local child_server = helpers.new_pipename()
|
||||||
..'", "-u", "NONE", "-i", "NONE", "--cmd", "'
|
screen = thelpers.screen_setup(0,
|
||||||
..nvim_set..' laststatus=2 background=dark'..'"]')
|
string.format([=[["%s", "--listen", "%s", "-u", "NONE", "-i", "NONE", "--cmd", "%s laststatus=2 background=dark"]]=],
|
||||||
|
nvim_prog, child_server, nvim_set))
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
{1: } |
|
{1: } |
|
||||||
{4:~ }|
|
{4:~ }|
|
||||||
@ -40,6 +42,7 @@ describe('TUI', function()
|
|||||||
|
|
|
|
||||||
{3:-- TERMINAL --} |
|
{3:-- TERMINAL --} |
|
||||||
]])
|
]])
|
||||||
|
child_session = helpers.connect(child_server)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
after_each(function()
|
after_each(function()
|
||||||
|
Loading…
Reference in New Issue
Block a user