mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.1.1581: shared functions for testing are disorganised
Problem: Shared functions for testing are disorganised.
Solution: Group finctions in script files. (Ozaki Kiichi, closes vim/vim#4573)
7a39dd7f00
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
538749410b
commit
bcac7674f7
@ -411,7 +411,7 @@ func Test_mksession_terminal_shell()
|
|||||||
endfor
|
endfor
|
||||||
call assert_match('terminal ++curwin ++cols=\d\+ ++rows=\d\+\s*.*$', term_cmd)
|
call assert_match('terminal ++curwin ++cols=\d\+ ++rows=\d\+\s*.*$', term_cmd)
|
||||||
|
|
||||||
call Stop_shell_in_terminal(bufnr('%'))
|
call StopShellInTerminal(bufnr('%'))
|
||||||
call delete('Xtest_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ func Test_mksession_terminal_no_restore_cmdarg()
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
call Stop_shell_in_terminal(bufnr('%'))
|
call StopShellInTerminal(bufnr('%'))
|
||||||
call delete('Xtest_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
@ -441,7 +441,7 @@ func Test_mksession_terminal_no_restore_funcarg()
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
call Stop_shell_in_terminal(bufnr('%'))
|
call StopShellInTerminal(bufnr('%'))
|
||||||
call delete('Xtest_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
@ -457,7 +457,7 @@ func Test_mksession_terminal_no_restore_func()
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
call Stop_shell_in_terminal(bufnr('%'))
|
call StopShellInTerminal(bufnr('%'))
|
||||||
call delete('Xtest_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
@ -473,7 +473,7 @@ func Test_mksession_terminal_no_ssop()
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
call Stop_shell_in_terminal(bufnr('%'))
|
call StopShellInTerminal(bufnr('%'))
|
||||||
call delete('Xtest_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
set sessionoptions&
|
set sessionoptions&
|
||||||
endfunc
|
endfunc
|
||||||
@ -491,7 +491,7 @@ func Test_mksession_terminal_restore_other()
|
|||||||
endfor
|
endfor
|
||||||
call assert_match('terminal ++curwin ++cols=\d\+ ++rows=\d\+.*other', term_cmd)
|
call assert_match('terminal ++curwin ++cols=\d\+ ++rows=\d\+.*other', term_cmd)
|
||||||
|
|
||||||
call Stop_shell_in_terminal(bufnr('%'))
|
call StopShellInTerminal(bufnr('%'))
|
||||||
call delete('Xtest_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user