comparison src/testdir/test_terminal.vim @ 17657:0da9bc55c31a v8.1.1826

patch 8.1.1826: tests use hand coded feature and option checks commit https://github.com/vim/vim/commit/8c5a278fc508da6dfe50e69b6ee734451aa4eafb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 7 23:07:07 2019 +0200 patch 8.1.1826: tests use hand coded feature and option checks Problem: Tests use hand coded feature and option checks. Solution: Use the commands from check.vim in more tests.
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Aug 2019 23:15:07 +0200
parents 9508c12eec55
children ba18f78c8529
comparison
equal deleted inserted replaced
17656:2adce9da20d8 17657:0da9bc55c31a
1786 set statusline& 1786 set statusline&
1787 endfunc 1787 endfunc
1788 1788
1789 " must be nearly the last, we can't go back from GUI to terminal 1789 " must be nearly the last, we can't go back from GUI to terminal
1790 func Test_zz1_terminal_in_gui() 1790 func Test_zz1_terminal_in_gui()
1791 if !CanRunGui() 1791 CheckCanRunGui
1792 return
1793 endif
1794 1792
1795 " Ignore the "failed to create input context" error. 1793 " Ignore the "failed to create input context" error.
1796 call test_ignore_error('E285:') 1794 call test_ignore_error('E285:')
1797 1795
1798 gui -f 1796 gui -f
1808 1806
1809 unlet g:job 1807 unlet g:job
1810 endfunc 1808 endfunc
1811 1809
1812 func Test_zz2_terminal_guioptions_bang() 1810 func Test_zz2_terminal_guioptions_bang()
1813 if !has('gui_running') 1811 CheckGui
1814 return
1815 endif
1816 set guioptions+=! 1812 set guioptions+=!
1817 1813
1818 let filename = 'Xtestscript' 1814 let filename = 'Xtestscript'
1819 if has('win32') 1815 if has('win32')
1820 let filename .= '.bat' 1816 let filename .= '.bat'