test: rename (meths, funcs) -> (api, fn)

This commit is contained in:
Lewis Russell
2024-01-12 17:59:57 +00:00
parent 4f81f506f9
commit 795f896a57
214 changed files with 6443 additions and 6560 deletions

View File

@@ -9,7 +9,7 @@ local exec = helpers.exec
local eval = helpers.eval
local eq = helpers.eq
local is_os = helpers.is_os
local meths = helpers.meths
local api = helpers.api
local function new_screen(opt)
local screen = Screen.new(25, 5)
@@ -922,7 +922,7 @@ describe('cmdline redraw', function()
it('with rightleftcmd', function()
command('set rightleft rightleftcmd=search shortmess+=s')
meths.nvim_buf_set_lines(0, 0, -1, true, { "let's rock!" })
api.nvim_buf_set_lines(0, 0, -1, true, { "let's rock!" })
screen:expect {
grid = [[
!kcor s'te^l|
@@ -1531,7 +1531,7 @@ describe('cmdheight=0', function()
it('with multigrid', function()
clear { args = { '--cmd', 'set cmdheight=0' } }
screen:attach { ext_multigrid = true }
meths.nvim_buf_set_lines(0, 0, -1, true, { 'p' })
api.nvim_buf_set_lines(0, 0, -1, true, { 'p' })
screen:expect {
grid = [[
## grid 1
@@ -1701,9 +1701,9 @@ describe('cmdheight=0', function()
{1:~ }|*3
{3:[No Name] }|
]])
meths.nvim_input_mouse('left', 'press', '', 0, 6, 10)
api.nvim_input_mouse('left', 'press', '', 0, 6, 10)
poke_eventloop()
meths.nvim_input_mouse('left', 'drag', '', 0, 5, 10)
api.nvim_input_mouse('left', 'drag', '', 0, 5, 10)
screen:expect_unchanged()
end)
end)