diff options
author | Gregory Anders <greg@gpanders.com> | 2021-08-17 21:30:58 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-08-18 12:17:12 -0600 |
commit | d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e (patch) | |
tree | 051f9f743f3786de6997f7f1f8e88e1ee6d8bcc5 /test/functional/api/buffer_updates_spec.lua | |
parent | d417e67e595a9eb19797866e91bb80b4fe299a94 (diff) | |
download | rneovim-d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e.tar.gz rneovim-d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e.tar.bz2 rneovim-d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e.zip |
test: update tests to work with 'hidden'
Diffstat (limited to 'test/functional/api/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/api/buffer_updates_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/api/buffer_updates_spec.lua b/test/functional/api/buffer_updates_spec.lua index 05ca0d5f4d..c9c9be5406 100644 --- a/test/functional/api/buffer_updates_spec.lua +++ b/test/functional/api/buffer_updates_spec.lua @@ -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}) |