mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: typing for helpers.meths
This commit is contained in:
@@ -597,7 +597,7 @@ local function screen_tests(linegrid)
|
||||
command([[autocmd VimResized * redrawtabline]])
|
||||
command([[autocmd VimResized * lua vim.api.nvim_echo({ { 'Hello' } }, false, {})]])
|
||||
command([[autocmd VimResized * let g:echospace = v:echospace]])
|
||||
meths.set_option_value('showtabline', 2, {})
|
||||
meths.nvim_set_option_value('showtabline', 2, {})
|
||||
screen:expect([[
|
||||
{2: + [No Name] }{3: }|
|
||||
resiz^e |
|
||||
@@ -611,7 +611,7 @@ local function screen_tests(linegrid)
|
||||
{0:~ }|*3
|
||||
|
|
||||
]])
|
||||
eq(29, meths.get_var('echospace'))
|
||||
eq(29, meths.nvim_get_var('echospace'))
|
||||
end)
|
||||
|
||||
it('messages from the same Ex command as resize are visible #22225', function()
|
||||
@@ -779,9 +779,9 @@ it('CTRL-F or CTRL-B scrolls a page after UI attach/resize #20605', function()
|
||||
clear()
|
||||
local screen = Screen.new(100, 100)
|
||||
screen:attach()
|
||||
eq(100, meths.get_option_value('lines', {}))
|
||||
eq(99, meths.get_option_value('window', {}))
|
||||
eq(99, meths.win_get_height(0))
|
||||
eq(100, meths.nvim_get_option_value('lines', {}))
|
||||
eq(99, meths.nvim_get_option_value('window', {}))
|
||||
eq(99, meths.nvim_win_get_height(0))
|
||||
feed('1000o<Esc>')
|
||||
eq(903, funcs.line('w0'))
|
||||
feed('<C-B>')
|
||||
@@ -794,9 +794,9 @@ it('CTRL-F or CTRL-B scrolls a page after UI attach/resize #20605', function()
|
||||
eq(903, funcs.line('w0'))
|
||||
feed('G')
|
||||
screen:try_resize(50, 50)
|
||||
eq(50, meths.get_option_value('lines', {}))
|
||||
eq(49, meths.get_option_value('window', {}))
|
||||
eq(49, meths.win_get_height(0))
|
||||
eq(50, meths.nvim_get_option_value('lines', {}))
|
||||
eq(49, meths.nvim_get_option_value('window', {}))
|
||||
eq(49, meths.nvim_win_get_height(0))
|
||||
eq(953, funcs.line('w0'))
|
||||
feed('<C-B>')
|
||||
eq(906, funcs.line('w0'))
|
||||
|
||||
Reference in New Issue
Block a user