mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
test: update tests to work with 'hidden'
This commit is contained in:
@@ -221,9 +221,9 @@ describe('getbufvar() function', function()
|
||||
eq(0, funcs.getbufvar(1, '&l:autoindent'))
|
||||
eq(0, funcs.getbufvar(1, '&g:autoindent'))
|
||||
-- Also works with global-only options
|
||||
eq(0, funcs.getbufvar(1, '&hidden'))
|
||||
eq(0, funcs.getbufvar(1, '&l:hidden'))
|
||||
eq(0, funcs.getbufvar(1, '&g:hidden'))
|
||||
eq(1, funcs.getbufvar(1, '&hidden'))
|
||||
eq(1, funcs.getbufvar(1, '&l:hidden'))
|
||||
eq(1, funcs.getbufvar(1, '&g:hidden'))
|
||||
-- Also works with window-local options
|
||||
eq(0, funcs.getbufvar(1, '&number'))
|
||||
eq(0, funcs.getbufvar(1, '&l:number'))
|
||||
@@ -279,9 +279,9 @@ describe('setbufvar() function', function()
|
||||
eq(false, winmeths.get_option(windows[3], 'number'))
|
||||
eq(false, winmeths.get_option(meths.get_current_win(), 'number'))
|
||||
|
||||
eq(false, meths.get_option('hidden'))
|
||||
funcs.setbufvar(1, '&hidden', true)
|
||||
eq(true, meths.get_option('hidden'))
|
||||
funcs.setbufvar(1, '&hidden', 0)
|
||||
eq(false, meths.get_option('hidden'))
|
||||
|
||||
eq(false, bufmeths.get_option(buf1, 'autoindent'))
|
||||
funcs.setbufvar(1, '&autoindent', true)
|
||||
|
Reference in New Issue
Block a user