aboutsummaryrefslogtreecommitdiff
path: root/test/functional/autocmd/tabnewentered_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-12-01 22:43:16 -0800
committerJustin M. Keyes <justinkz@gmail.com>2019-12-02 20:52:06 -0800
commitc34130d13a842ae0c0c1724d05800a954547d327 (patch)
tree1f24de9e40afe266f35ebbb6c2fc09be969989c3 /test/functional/autocmd/tabnewentered_spec.lua
parent22b52dd462e5dc9d5429305215bfb20aa20517c5 (diff)
downloadrneovim-c34130d13a842ae0c0c1724d05800a954547d327.tar.gz
rneovim-c34130d13a842ae0c0c1724d05800a954547d327.tar.bz2
rneovim-c34130d13a842ae0c0c1724d05800a954547d327.zip
API: deprecate nvim_command_output
Diffstat (limited to 'test/functional/autocmd/tabnewentered_spec.lua')
-rw-r--r--test/functional/autocmd/tabnewentered_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/autocmd/tabnewentered_spec.lua b/test/functional/autocmd/tabnewentered_spec.lua
index 59cac07b34..32e341184d 100644
--- a/test/functional/autocmd/tabnewentered_spec.lua
+++ b/test/functional/autocmd/tabnewentered_spec.lua
@@ -7,15 +7,15 @@ describe('TabNewEntered', function()
it('matches when entering any new tab', function()
clear()
nvim('command', 'au! TabNewEntered * echom "tabnewentered:".tabpagenr().":".bufnr("")')
- eq("tabnewentered:2:2", nvim('command_output', 'tabnew'))
- eq("tabnewentered:3:3", nvim('command_output', 'tabnew test.x2'))
+ eq("tabnewentered:2:2", nvim('exec', 'tabnew', true))
+ eq("tabnewentered:3:3", nvim('exec', 'tabnew test.x2', true))
end)
end)
describe('with FILE as <afile>', function()
it('matches when opening a new tab for FILE', function()
nvim('command', 'au! TabNewEntered Xtest-tabnewentered echom "tabnewentered:match"')
eq('tabnewentered:4:4\ntabnewentered:match',
- nvim('command_output', 'tabnew Xtest-tabnewentered'))
+ nvim('exec', 'tabnew Xtest-tabnewentered', true))
end)
end)
describe('with CTRL-W T', function()
@@ -24,7 +24,7 @@ describe('TabNewEntered', function()
nvim('command', 'au! TabNewEntered * echom "entered"')
nvim('command', 'tabnew test.x2')
nvim('command', 'split')
- eq('entered', nvim('command_output', 'execute "normal \\<C-W>T"'))
+ eq('entered', nvim('exec', 'execute "normal \\<C-W>T"', true))
end)
end)
end)