mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
test: update tests to work with 'hidden'
This commit is contained in:
@@ -159,9 +159,8 @@ describe('API: buffer events:', function()
|
||||
tick = tick + 1
|
||||
expectn('nvim_buf_lines_event', {b, tick, 29, 29, firstfour, false})
|
||||
|
||||
-- create a new empty buffer and wipe out the old one ... this will
|
||||
-- turn off buffer events
|
||||
command('enew!')
|
||||
-- delete the current buffer to turn off buffer events
|
||||
command('bdelete!')
|
||||
expectn('nvim_buf_detach_event', {b})
|
||||
|
||||
-- add a line at the start of an empty file
|
||||
@@ -269,7 +268,7 @@ describe('API: buffer events:', function()
|
||||
'original foo'}, false})
|
||||
|
||||
-- type text into the first line of a blank file, one character at a time
|
||||
command('enew!')
|
||||
command('bdelete!')
|
||||
tick = 2
|
||||
expectn('nvim_buf_detach_event', {b})
|
||||
local bnew = nvim('get_current_buf')
|
||||
@@ -666,7 +665,8 @@ describe('API: buffer events:', function()
|
||||
tick = tick + 1
|
||||
expectn('nvim_buf_changedtick_event', {b, tick})
|
||||
|
||||
-- close our buffer by creating a new one
|
||||
-- close our buffer and create a new one
|
||||
command('bdelete')
|
||||
command('enew')
|
||||
expectn('nvim_buf_detach_event', {b})
|
||||
|
||||
|
Reference in New Issue
Block a user