aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2018-05-10 23:13:58 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2018-05-23 22:07:27 +0200
commit0bee3925ab5186211f10c823d4f149d4d16eb7a5 (patch)
tree553c7d291be5ac0e73204f5db7ab205f98002785 /test/functional/api/buffer_updates_spec.lua
parentad151847f179e51d70cbde9440e765c2a451a7f6 (diff)
downloadrneovim-0bee3925ab5186211f10c823d4f149d4d16eb7a5.tar.gz
rneovim-0bee3925ab5186211f10c823d4f149d4d16eb7a5.tar.bz2
rneovim-0bee3925ab5186211f10c823d4f149d4d16eb7a5.zip
Send changedtick as first event if buffer contents weren't requested
Diffstat (limited to 'test/functional/api/buffer_updates_spec.lua')
-rw-r--r--test/functional/api/buffer_updates_spec.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/functional/api/buffer_updates_spec.lua b/test/functional/api/buffer_updates_spec.lua
index 3f15c8a8a5..1bbba91187 100644
--- a/test/functional/api/buffer_updates_spec.lua
+++ b/test/functional/api/buffer_updates_spec.lua
@@ -338,7 +338,7 @@ describe('buffer events', function()
tick = tick + 1
expectn('nvim_buf_lines_event', {b, tick, 1, 2, {}, false})
tick = tick + 1
- expectn('nvim_buf_changedtick', {b, tick})
+ expectn('nvim_buf_changedtick_event', {b, tick})
command('set autoindent')
command('normal! >>')
tick = tick + 1
@@ -356,7 +356,7 @@ describe('buffer events', function()
tick = tick + 1
expectn('nvim_buf_lines_event', {b, tick, 1, 2, {}, false})
tick = tick + 1
- expectn('nvim_buf_changedtick', {b, tick})
+ expectn('nvim_buf_changedtick_event', {b, tick})
command('normal! ggOmmm')
tick = tick + 1
expectn('nvim_buf_lines_event', {b, tick, 0, 0, {"\t"}, false})
@@ -376,7 +376,7 @@ describe('buffer events', function()
tick = tick + 1
expectn('nvim_buf_lines_event', {b, tick, 0, 1, {'Line 1'}, false})
tick = tick + 1
- expectn('nvim_buf_changedtick', {b, tick})
+ expectn('nvim_buf_changedtick_event', {b, tick})
-- change the file directly
local f = io.open(filename, 'a')
@@ -412,7 +412,7 @@ describe('buffer events', function()
tick1 = tick1 + 1
expectn('nvim_buf_lines_event', {b1, tick1, 0, 1, {'A1'}, false})
tick1 = tick1 + 1
- expectn('nvim_buf_changedtick', {b1, tick1})
+ expectn('nvim_buf_changedtick_event', {b1, tick1})
command('b'..b2nr)
command('normal! x')
@@ -422,7 +422,7 @@ describe('buffer events', function()
tick2 = tick2 + 1
expectn('nvim_buf_lines_event', {b2, tick2, 0, 1, {'B1'}, false})
tick2 = tick2 + 1
- expectn('nvim_buf_changedtick', {b2, tick2})
+ expectn('nvim_buf_changedtick_event', {b2, tick2})
command('b'..b3nr)
command('normal! x')
@@ -432,7 +432,7 @@ describe('buffer events', function()
tick3 = tick3 + 1
expectn('nvim_buf_lines_event', {b3, tick3, 0, 1, {'C1'}, false})
tick3 = tick3 + 1
- expectn('nvim_buf_changedtick', {b3, tick3})
+ expectn('nvim_buf_changedtick_event', {b3, tick3})
end)
it('doesn\'t get confused when you turn watching on/off many times',
@@ -514,8 +514,8 @@ describe('buffer events', function()
wantn(2, 'nvim_buf_lines_event', {b, tick, 0, 1, {'AAA'}, false})
wantn(3, 'nvim_buf_lines_event', {b, tick, 0, 1, {'AAA'}, false})
tick = tick + 1
- wantn(2, 'nvim_buf_changedtick', {b, tick})
- wantn(3, 'nvim_buf_changedtick', {b, tick})
+ wantn(2, 'nvim_buf_changedtick_event', {b, tick})
+ wantn(3, 'nvim_buf_changedtick_event', {b, tick})
-- make sure there are no other pending nvim_buf_lines_event messages going to
-- channel 1
@@ -667,7 +667,7 @@ describe('buffer events', function()
tick = tick + 1
expectn('nvim_buf_lines_event', {b, tick, 0, 1, {'AAA'}, false})
tick = tick + 1
- expectn('nvim_buf_changedtick', {b, tick})
+ expectn('nvim_buf_changedtick_event', {b, tick})
-- close our buffer by creating a new one
command('enew')
@@ -694,7 +694,7 @@ describe('buffer events', function()
tick = tick + 1
expectn('nvim_buf_lines_event', {b, tick, 0, 1, {'AAA'}, false})
tick = tick + 1
- expectn('nvim_buf_changedtick', {b, tick})
+ expectn('nvim_buf_changedtick_event', {b, tick})
-- close our buffer by creating a new one
command('set hidden')
@@ -733,7 +733,7 @@ describe('buffer events', function()
helpers.clear()
local b, tick = editoriginal(false)
ok(buffer('attach', b, false))
- expectn('nvim_buf_lines_event', {b, tick, -1, -1, {}, false})
+ expectn('nvim_buf_changedtick_event', {b, tick})
end)
end)