forked from aniani/vim
patch 9.0.0663: tests check for +cmdwin feature which is always present
Problem: Tests check for +cmdwin feature which is always present. Solution: Remove the checks. (closes #11287)
This commit is contained in:
@@ -587,8 +587,6 @@ endfunc
|
|||||||
|
|
||||||
" Test for ":all" not working when in the cmdline window
|
" Test for ":all" not working when in the cmdline window
|
||||||
func Test_all_not_allowed_from_cmdwin()
|
func Test_all_not_allowed_from_cmdwin()
|
||||||
CheckFeature cmdwin
|
|
||||||
|
|
||||||
au BufEnter * all
|
au BufEnter * all
|
||||||
next x
|
next x
|
||||||
" Use try/catch here, somehow assert_fails() doesn't work on MS-Windows
|
" Use try/catch here, somehow assert_fails() doesn't work on MS-Windows
|
||||||
|
@@ -2778,7 +2778,6 @@ endfunc
|
|||||||
|
|
||||||
func Test_autocmd_CmdWinEnter()
|
func Test_autocmd_CmdWinEnter()
|
||||||
CheckRunVimInTerminal
|
CheckRunVimInTerminal
|
||||||
CheckFeature cmdwin
|
|
||||||
|
|
||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
augroup vimHints | au! | augroup END
|
augroup vimHints | au! | augroup END
|
||||||
@@ -3418,19 +3417,17 @@ func Test_mode_changes()
|
|||||||
call assert_equal(5, g:nori_to_any)
|
call assert_equal(5, g:nori_to_any)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has('cmdwin')
|
let g:n_to_c = 0
|
||||||
let g:n_to_c = 0
|
au ModeChanged n:c let g:n_to_c += 1
|
||||||
au ModeChanged n:c let g:n_to_c += 1
|
let g:c_to_n = 0
|
||||||
let g:c_to_n = 0
|
au ModeChanged c:n let g:c_to_n += 1
|
||||||
au ModeChanged c:n let g:c_to_n += 1
|
let g:mode_seq += ['c', 'n', 'c', 'n']
|
||||||
let g:mode_seq += ['c', 'n', 'c', 'n']
|
call feedkeys("q:\<C-C>\<Esc>", 'tnix')
|
||||||
call feedkeys("q:\<C-C>\<Esc>", 'tnix')
|
call assert_equal(len(g:mode_seq) - 1, g:index)
|
||||||
call assert_equal(len(g:mode_seq) - 1, g:index)
|
call assert_equal(2, g:n_to_c)
|
||||||
call assert_equal(2, g:n_to_c)
|
call assert_equal(2, g:c_to_n)
|
||||||
call assert_equal(2, g:c_to_n)
|
unlet g:n_to_c
|
||||||
unlet g:n_to_c
|
unlet g:c_to_n
|
||||||
unlet g:c_to_n
|
|
||||||
endif
|
|
||||||
|
|
||||||
au! ModeChanged
|
au! ModeChanged
|
||||||
delfunc TestMode
|
delfunc TestMode
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
" Tests for editing the command line.
|
" Tests for editing the command line.
|
||||||
|
|
||||||
source check.vim
|
source check.vim
|
||||||
CheckFeature cmdwin
|
|
||||||
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_getcmdwintype()
|
func Test_getcmdwintype()
|
||||||
|
@@ -617,8 +617,6 @@ endfunc
|
|||||||
|
|
||||||
" Test for closing the tab page from a command window
|
" Test for closing the tab page from a command window
|
||||||
func Test_tabpage_close_cmdwin()
|
func Test_tabpage_close_cmdwin()
|
||||||
CheckFeature cmdwin
|
|
||||||
|
|
||||||
tabnew
|
tabnew
|
||||||
call feedkeys("q/:tabclose\<CR>\<Esc>", 'xt')
|
call feedkeys("q/:tabclose\<CR>\<Esc>", 'xt')
|
||||||
call assert_equal(2, tabpagenr('$'))
|
call assert_equal(2, tabpagenr('$'))
|
||||||
|
@@ -367,8 +367,6 @@ endfunc
|
|||||||
|
|
||||||
" Test for using the mouse to increase the height of the cmdline window
|
" Test for using the mouse to increase the height of the cmdline window
|
||||||
func Test_mouse_cmdwin_resize()
|
func Test_mouse_cmdwin_resize()
|
||||||
CheckFeature cmdwin
|
|
||||||
|
|
||||||
let save_mouse = &mouse
|
let save_mouse = &mouse
|
||||||
let save_term = &term
|
let save_term = &term
|
||||||
let save_ttymouse = &ttymouse
|
let save_ttymouse = &ttymouse
|
||||||
|
@@ -20,8 +20,6 @@ func Test_window_cmd_ls0_with_split()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_window_cmd_cmdwin_with_vsp()
|
func Test_window_cmd_cmdwin_with_vsp()
|
||||||
CheckFeature cmdwin
|
|
||||||
|
|
||||||
let efmt = 'Expected 0 but got %d (in ls=%d, %s window)'
|
let efmt = 'Expected 0 but got %d (in ls=%d, %s window)'
|
||||||
for v in range(0, 2)
|
for v in range(0, 2)
|
||||||
exec "set ls=" . v
|
exec "set ls=" . v
|
||||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
663,
|
||||||
/**/
|
/**/
|
||||||
662,
|
662,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user