mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: rename (meths, funcs) -> (api, fn)
This commit is contained in:
@@ -5,7 +5,7 @@ local command = helpers.command
|
||||
local feed = helpers.feed
|
||||
local feed_command = helpers.feed_command
|
||||
local exec = helpers.exec
|
||||
local meths = helpers.meths
|
||||
local api = helpers.api
|
||||
local pesc = vim.pesc
|
||||
|
||||
describe('cmdline', function()
|
||||
@@ -198,9 +198,9 @@ describe('cmdline', function()
|
||||
[3] = { reverse = true }, -- TabLineFill
|
||||
})
|
||||
screen:attach()
|
||||
meths.nvim_set_option_value('laststatus', 2, {})
|
||||
meths.nvim_set_option_value('showtabline', 2, {})
|
||||
meths.nvim_set_option_value('cmdheight', 1, {})
|
||||
api.nvim_set_option_value('laststatus', 2, {})
|
||||
api.nvim_set_option_value('showtabline', 2, {})
|
||||
api.nvim_set_option_value('cmdheight', 1, {})
|
||||
screen:expect([[
|
||||
{2: [No Name] }{3: }|
|
||||
^ |
|
||||
@@ -217,10 +217,10 @@ describe('cmdline', function()
|
||||
[0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
|
||||
}
|
||||
screen:attach()
|
||||
meths.nvim_set_option_value('ruler', true, {})
|
||||
meths.nvim_set_option_value('rulerformat', 'longish', {})
|
||||
meths.nvim_set_option_value('laststatus', 0, {})
|
||||
meths.nvim_set_option_value('winwidth', 1, {})
|
||||
api.nvim_set_option_value('ruler', true, {})
|
||||
api.nvim_set_option_value('rulerformat', 'longish', {})
|
||||
api.nvim_set_option_value('laststatus', 0, {})
|
||||
api.nvim_set_option_value('winwidth', 1, {})
|
||||
feed [[<C-W>v<C-W>|<C-W>p]]
|
||||
screen:expect [[
|
||||
│^ |
|
||||
|
||||
Reference in New Issue
Block a user