test/tui_spec: connect to child session

This commit is contained in:
Justin M. Keyes 2019-08-20 22:04:46 +02:00
parent 517bf99ddb
commit 1fdae25b2b

View File

@ -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()