aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/getcwd_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/getcwd_spec.lua')
-rw-r--r--test/functional/legacy/getcwd_spec.lua46
1 files changed, 23 insertions, 23 deletions
diff --git a/test/functional/legacy/getcwd_spec.lua b/test/functional/legacy/getcwd_spec.lua
index dcb56eb242..8fb31ccd22 100644
--- a/test/functional/legacy/getcwd_spec.lua
+++ b/test/functional/legacy/getcwd_spec.lua
@@ -2,7 +2,7 @@
local helpers = require('test.functional.helpers')(after_each)
local eq, eval, source = helpers.eq, helpers.eval, helpers.source
-local call, clear, execute = helpers.call, helpers.clear, helpers.execute
+local call, clear, command = helpers.call, helpers.clear, helpers.command
if helpers.pending_win32(pending) then return end
@@ -39,48 +39,48 @@ describe('getcwd', function()
return bufname . ' ' . dirname . ' ' . lflag
endfunction
]])
- execute('new')
- execute('let cwd=getcwd()')
+ command('new')
+ command('let cwd=getcwd()')
call('mkdir', 'Xtopdir')
- execute('silent cd Xtopdir')
+ command('silent cd Xtopdir')
call('mkdir', 'Xdir1')
call('mkdir', 'Xdir2')
call('mkdir', 'Xdir3')
- execute('new a')
- execute('new b')
- execute('new c')
- execute('3wincmd w')
- execute('silent lcd Xdir1')
+ command('new a')
+ command('new b')
+ command('new c')
+ command('3wincmd w')
+ command('silent lcd Xdir1')
eq('a Xdir1 1', eval('GetCwdInfo(0, 0)'))
- execute('wincmd W')
+ command('wincmd W')
eq('b Xtopdir 0', eval('GetCwdInfo(0, 0)'))
- execute('wincmd W')
- execute('silent lcd Xdir3')
+ command('wincmd W')
+ command('silent lcd Xdir3')
eq('c Xdir3 1', eval('GetCwdInfo(0, 0)'))
eq('a Xdir1 1', eval('GetCwdInfo(bufwinnr("a"), 0)'))
eq('b Xtopdir 0', eval('GetCwdInfo(bufwinnr("b"), 0)'))
eq('c Xdir3 1', eval('GetCwdInfo(bufwinnr("c"), 0)'))
- execute('wincmd W')
+ command('wincmd W')
eq('a Xdir1 1', eval('GetCwdInfo(bufwinnr("a"), tabpagenr())'))
eq('b Xtopdir 0', eval('GetCwdInfo(bufwinnr("b"), tabpagenr())'))
eq('c Xdir3 1', eval('GetCwdInfo(bufwinnr("c"), tabpagenr())'))
- execute('tabnew x')
- execute('new y')
- execute('new z')
- execute('3wincmd w')
+ command('tabnew x')
+ command('new y')
+ command('new z')
+ command('3wincmd w')
eq('x Xtopdir 0', eval('GetCwdInfo(0, 0)'))
- execute('wincmd W')
- execute('silent lcd Xdir2')
+ command('wincmd W')
+ command('silent lcd Xdir2')
eq('y Xdir2 1', eval('GetCwdInfo(0, 0)'))
- execute('wincmd W')
- execute('silent lcd Xdir3')
+ command('wincmd W')
+ command('silent lcd Xdir3')
eq('z Xdir3 1', eval('GetCwdInfo(0, 0)'))
eq('x Xtopdir 0', eval('GetCwdInfo(bufwinnr("x"), 0)'))
eq('y Xdir2 1', eval('GetCwdInfo(bufwinnr("y"), 0)'))
eq('z Xdir3 1', eval('GetCwdInfo(bufwinnr("z"), 0)'))
- execute('let tp_nr = tabpagenr()')
- execute('tabrewind')
+ command('let tp_nr = tabpagenr()')
+ command('tabrewind')
eq('x Xtopdir 0', eval('GetCwdInfo(3, tp_nr)'))
eq('y Xdir2 1', eval('GetCwdInfo(2, tp_nr)'))
eq('z Xdir3 1', eval('GetCwdInfo(1, tp_nr)'))