From c41bacc67cb2c5be765f30c42889f168d5fc9d40 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 8 Jun 2016 11:26:06 +0200 Subject: api/ui: add tests for popupmenu_external events update screen.lua to use new style nvim_ui_attach --- test/functional/helpers.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/functional/helpers.lua') diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 2d54d23254..140e78aeb5 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -306,6 +306,10 @@ local function nvim(method, ...) return request('vim_'..method, ...) end +local function ui(method, ...) + return request('nvim_ui_'..method, ...) +end + local function nvim_async(method, ...) session:notify('vim_'..method, ...) end @@ -432,6 +436,7 @@ end local funcs = create_callindex(nvim_call) local meths = create_callindex(nvim) +local uimeths = create_callindex(ui) local bufmeths = create_callindex(buffer) local winmeths = create_callindex(window) local tabmeths = create_callindex(tabpage) @@ -490,6 +495,7 @@ return function(after_each) bufmeths = bufmeths, winmeths = winmeths, tabmeths = tabmeths, + uimeths = uimeths, curbufmeths = curbufmeths, curwinmeths = curwinmeths, curtabmeths = curtabmeths, -- cgit