patch 8.2.1432: various inconsistencies in test files

Problem:    Various inconsistencies in test files.
Solution:   Add modelines where they were missing.  Use Check commands instead
            of silently skipping over tests.  Adjust indents and comments.
            (Ken Takata, closes #6695)
This commit is contained in:
Bram Moolenaar
2020-08-12 18:50:36 +02:00
parent c3d6e8a46a
commit 6d91bcb4d2
159 changed files with 946 additions and 877 deletions

View File

@ -242,11 +242,11 @@ endfunc
func Test_args_with_quote()
" Only on Unix can a file name include a double quote.
if has('unix')
args \"foobar
call assert_equal('"foobar', argv(0))
%argdelete
endif
CheckUnix
args \"foobar
call assert_equal('"foobar', argv(0))
%argdelete
endfunc
" Test for 0argadd and 0argedit

View File

@ -374,3 +374,5 @@ func Test_zz_quit_detected()
" Verify that if a test function ends Vim the test script detects this.
quit
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -24,3 +24,5 @@ func Test_set_filename()
call chdir(cwd)
call delete('samples/Xtest')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -70,9 +70,7 @@ if has('timers')
endfunc
func Test_cursorhold_insert_with_timer_interrupt()
if !has('job')
return
endif
CheckFeature job
" Need to move the cursor.
call feedkeys("ggG", "xt")
@ -535,9 +533,7 @@ func s:AutoCommandOptionSet(match)
endfunc
func Test_OptionSet()
if !has("eval") || !exists("+autochdir")
return
endif
CheckOption autochdir
badd test_autocmd.vim
@ -1778,12 +1774,11 @@ func Test_nocatch_wipe_all_buffers()
endfunc
func Test_nocatch_wipe_dummy_buffer()
if has('quickfix')
" Nasty autocommand: wipe buffer on any event.
au * x bwipe
call assert_fails('lv½ /x', 'E937')
au!
endif
CheckFeature quickfix
" Nasty autocommand: wipe buffer on any event.
au * x bwipe
call assert_fails('lv½ /x', 'E937')
au!
endfunc
function s:Before_test_dirchanged()
@ -1834,9 +1829,7 @@ function Test_dirchanged_local()
endfunc
function Test_dirchanged_auto()
if !exists('+autochdir')
return
endif
CheckOption autochdir
call s:Before_test_dirchanged()
call test_autochdir()
autocmd test_dirchanged DirChanged auto call add(s:li, "auto:")
@ -2087,9 +2080,8 @@ endfunc
" - FileReadPost decompress the file
func Test_ReadWrite_Autocmds()
" Run this test only on Unix-like systems and if gzip is available
if !has('unix') || !executable("gzip")
return
endif
CheckUnix
CheckExecutable gzip
" Make $GZIP empty, "-v" would cause trouble.
let $GZIP = ""

View File

@ -22,3 +22,5 @@ func Test_autoload_vim9script()
call assert_equal('some', auto9#getsome())
call assert_equal(49, auto9#add42(7))
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -64,3 +64,5 @@ func Test_balloon_eval_term_visual()
call StopVimInTerminal(buf)
call delete('XTest_beval_visual')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -17,3 +17,5 @@ func Test_balloon_show_gui()
sleep 10m
call balloon_show('')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -27,3 +27,5 @@ endfunc
func Test_behave_error()
call assert_fails('behave x', 'E475:')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,5 +1,4 @@
" Test for block inserting
"
func Test_blockinsert_indent()
new

View File

@ -46,9 +46,7 @@ endfunc
func Test_breakindent01_vartabs()
" like 01 but with vartabs feature
if !has("vartabs")
return
endif
CheckFeature vartabs
call s:test_windows('setl briopt=min:0 vts=4')
let lines = s:screen_lines(line('.'),8)
let expect = [
@ -75,9 +73,7 @@ func Test_breakindent02()
endfunc
func Test_breakindent02_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" simple breakindent test with showbreak set
call s:test_windows('setl briopt=min:0 sbr=>> vts=4')
let lines = s:screen_lines(line('.'),8)
@ -106,9 +102,7 @@ endfunc
func Test_breakindent03_vartabs()
" simple breakindent test with showbreak set and briopt including sbr
if !has("vartabs")
return
endif
CheckFeature vartabs
call s:test_windows('setl briopt=sbr,min:0 sbr=++ vts=4')
let lines = s:screen_lines(line('.'),8)
let expect = [
@ -139,9 +133,7 @@ endfunc
func Test_breakindent04_vartabs()
" breakindent set with min width 18
if !has("vartabs")
return
endif
CheckFeature vartabs
call s:test_windows('setl sbr= briopt=min:18 vts=4')
let lines = s:screen_lines(line('.'),8)
let expect = [
@ -169,9 +161,7 @@ endfunc
func Test_breakindent05_vartabs()
" breakindent set and shift by 2
if !has("vartabs")
return
endif
CheckFeature vartabs
call s:test_windows('setl briopt=shift:2,min:0 vts=4')
let lines = s:screen_lines(line('.'),8)
let expect = [
@ -198,9 +188,7 @@ endfunc
func Test_breakindent06_vartabs()
" breakindent set and shift by -1
if !has("vartabs")
return
endif
CheckFeature vartabs
call s:test_windows('setl briopt=shift:-1,min:0 vts=4')
let lines = s:screen_lines(line('.'),8)
let expect = [
@ -227,9 +215,7 @@ func Test_breakindent07()
endfunc
func Test_breakindent07_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" breakindent set and shift by 1, Number set sbr=? and briopt:sbr
call s:test_windows('setl briopt=shift:1,sbr,min:0 nu sbr=? nuw=4 cpo+=n vts=4')
let lines = s:screen_lines(line('.'),10)
@ -258,9 +244,7 @@ func Test_breakindent07a()
endfunc
func Test_breakindent07a_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" breakindent set and shift by 1, Number set sbr=? and briopt:sbr
call s:test_windows('setl briopt=shift:1,sbr,min:0 nu sbr=? nuw=4 vts=4')
let lines = s:screen_lines(line('.'),10)
@ -293,9 +277,7 @@ func Test_breakindent08()
endfunc
func Test_breakindent08_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" breakindent set and shift by 1, Number and list set sbr=# and briopt:sbr
call s:test_windows('setl briopt=shift:1,sbr,min:0 nu nuw=4 sbr=# list cpo+=n ts=4 vts=4')
" make sure, cache is invalidated!
@ -327,9 +309,7 @@ func Test_breakindent08a()
endfunc
func Test_breakindent08a_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" breakindent set and shift by 1, Number and list set sbr=# and briopt:sbr
call s:test_windows('setl briopt=shift:1,sbr,min:0 nu nuw=4 sbr=# list vts=4')
let lines = s:screen_lines(line('.'),10)
@ -356,9 +336,7 @@ func Test_breakindent09()
endfunc
func Test_breakindent09_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" breakindent set and shift by 1, Number and list set sbr=#
call s:test_windows('setl briopt=shift:1,min:0 nu nuw=4 sbr=# list vts=4')
let lines = s:screen_lines(line('.'),10)
@ -390,9 +368,7 @@ func Test_breakindent10()
endfunc
func Test_breakindent10_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" breakindent set, Number set sbr=~
call s:test_windows('setl cpo+=n sbr=~ nu nuw=4 nolist briopt=sbr,min:0 vts=4')
" make sure, cache is invalidated!
@ -421,9 +397,7 @@ func Test_breakindent11()
endfunc
func Test_breakindent11_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" test strdisplaywidth()
call s:test_windows('setl cpo-=n sbr=>> nu nuw=4 nolist briopt= ts=4 vts=4')
let text = getline(2)
@ -447,9 +421,7 @@ func Test_breakindent12()
endfunc
func Test_breakindent12_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" test breakindent with long indent
let s:input = "\t\t\t\t\t{"
call s:test_windows('setl breakindent linebreak briopt=min:10 nu numberwidth=3 ts=4 list listchars=tab:>- vts=4')
@ -478,9 +450,7 @@ func Test_breakindent13()
endfunc
func Test_breakindent13_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
let s:input = ""
call s:test_windows('setl breakindent briopt=min:10 ts=8 vts=8')
vert resize 20
@ -512,9 +482,7 @@ func Test_breakindent14()
endfunc
func Test_breakindent14_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
let s:input = ""
call s:test_windows('setl breakindent briopt= ts=8 vts=8')
vert resize 30
@ -548,9 +516,7 @@ func Test_breakindent15()
endfunc
func Test_breakindent15_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
let s:input = ""
call s:test_windows('setl breakindent briopt= ts=8 sw=8 vts=8')
vert resize 30
@ -592,9 +558,7 @@ func Test_breakindent16()
endfunc
func Test_breakindent16_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
" Check that overlong lines are indented correctly.
let s:input = ""
call s:test_windows('setl breakindent briopt=min:0 ts=4 vts=4')
@ -620,9 +584,7 @@ func Test_breakindent16_vartabs()
endfunc
func Test_breakindent17_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
let s:input = ""
call s:test_windows('setl breakindent list listchars=tab:<-> showbreak=+++')
call setline(1, "\t" . repeat('a', 63))
@ -640,9 +602,7 @@ func Test_breakindent17_vartabs()
endfunc
func Test_breakindent18_vartabs()
if !has("vartabs")
return
endif
CheckFeature vartabs
let s:input = ""
call s:test_windows('setl breakindent list listchars=tab:<->')
call setline(1, "\t" . repeat('a', 63))

View File

@ -202,3 +202,5 @@ func Test_appendbufline_redraw()
call StopVimInTerminal(buf)
call delete('XscriptMatchCommon')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,4 +1,5 @@
" Tests for the getbufinfo(), getwininfo() and gettabinfo() functions
source check.vim
func Test_getbufwintabinfo()
@ -168,3 +169,5 @@ func Test_getbufinfo_lines()
edit Xfoo
bw!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -191,3 +191,5 @@ func Test_cd_completion()
call delete('XComplDir2', 'd')
call delete('XComplFile')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -93,3 +93,5 @@ func Test_changedtick_not_incremented_with_write()
bwipe
call delete(fname)
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,10 +1,10 @@
" Tests for the changelist functionality
source check.vim
" Tests for the getchangelist() function
func Test_getchangelist()
if !has("jumplist")
return
endif
CheckFeature jumplist
bwipe!
enew

View File

@ -1348,9 +1348,7 @@ endfunction
" This caused a crash, because messages were handled while peeking for a
" character.
func Test_exit_cb_wipes_buf()
if !has('timers')
return
endif
CheckFeature timers
set cursorline lazyredraw
call test_override('redraw_flag', 1)
new

View File

@ -102,3 +102,5 @@ func Test_checkpath3()
set include&
set includeexpr&
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,5 +1,4 @@
" Test for cinoptions and cindent
"
func Test_cino_hash()
" Test that curbuf->b_ind_hash_comment is correctly reset

View File

@ -1,3 +1,5 @@
" Test for CJK linebreak
scriptencoding utf-8
func Run_cjk_linebreak_after(rigorous)
@ -95,3 +97,5 @@ func Test_cjk_linebreak_join_punct()
%d_
endfor
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -30,7 +30,7 @@ endfunc
func Test_client_server()
let cmd = GetVimCommand()
if cmd == ''
return
throw 'GetVimCommand() failed'
endif
call Check_X11_Connection()

View File

@ -1,5 +1,5 @@
" Tests for :[count]close! command
func Test_close_count()
enew! | only
@ -172,3 +172,5 @@ func Test_winclose_command()
set nohidden
only!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -86,9 +86,7 @@ func Test_complete_wildmenu()
endfunc
func Test_map_completion()
if !has('cmdline_compl')
return
endif
CheckFeature cmdline_compl
call feedkeys(":map <unique> <si\<Tab>\<Home>\"\<CR>", 'xt')
call assert_equal('"map <unique> <silent>', getreg(':'))
call feedkeys(":map <script> <un\<Tab>\<Home>\"\<CR>", 'xt')
@ -164,9 +162,7 @@ func Test_map_completion()
endfunc
func Test_match_completion()
if !has('cmdline_compl')
return
endif
CheckFeature cmdline_compl
hi Aardig ctermfg=green
call feedkeys(":match \<Tab>\<Home>\"\<CR>", 'xt')
call assert_equal('"match Aardig', getreg(':'))
@ -175,9 +171,7 @@ func Test_match_completion()
endfunc
func Test_highlight_completion()
if !has('cmdline_compl')
return
endif
CheckFeature cmdline_compl
hi Aardig ctermfg=green
call feedkeys(":hi \<Tab>\<Home>\"\<CR>", 'xt')
call assert_equal('"hi Aardig', getreg(':'))
@ -214,9 +208,7 @@ func Test_highlight_easter_egg()
endfunc
func Test_getcompletion()
if !has('cmdline_compl')
return
endif
CheckFeature cmdline_compl
let groupcount = len(getcompletion('', 'event'))
call assert_true(groupcount > 0)
let matchcount = len('File'->getcompletion('event'))
@ -527,9 +519,7 @@ func Test_cmdline_remove_char()
endfunc
func Test_cmdline_keymap_ctrl_hat()
if !has('keymap')
return
endif
CheckFeature keymap
set keymap=esperanto
call feedkeys(":\"Jxauxdo \<C-^>Jxauxdo \<C-^>Jxauxdo\<CR>", 'tx')
@ -596,8 +586,7 @@ func Test_cmdline_complete_user_names()
call feedkeys(':e ~' . first_letter . "\<c-a>\<c-B>\"\<cr>", 'tx')
call assert_match('^"e \~.*\<' . whoami . '\>', @:)
endif
endif
if has('win32')
elseif has('win32')
" Just in case: check that the system has an Administrator account.
let names = system('net user')
if names =~ 'Administrator'
@ -606,14 +595,15 @@ func Test_cmdline_complete_user_names()
call feedkeys(':e ~A' . "\<c-a>\<c-B>\"\<cr>", 'tx')
call assert_match('^"e \~.*Administrator', @:)
endif
else
throw 'Skipped: does not work on this platform'
endif
endfunc
func Test_cmdline_complete_bang()
if executable('whoami')
call feedkeys(":!whoam\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_match('^".*\<whoami\>', @:)
endif
CheckExecutable whoami
call feedkeys(":!whoam\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_match('^".*\<whoami\>', @:)
endfunc
func Test_cmdline_complete_languages()
@ -1256,9 +1246,7 @@ endfunc
" Test for the :! command
func Test_cmd_bang()
if !has('unix')
return
endif
CheckUnix
let lines =<< trim [SCRIPT]
" Test for no previous command

View File

@ -194,3 +194,5 @@ func Test_command_count_4()
tabonly!
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,3 +1,5 @@
" Test for comparators
function Test_Comparators()
try
let oldisident=&isident
@ -7,3 +9,5 @@ function Test_Comparators()
let &isident=oldisident
endtry
endfunction
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -76,3 +76,5 @@ func Test_compiler_error()
call assert_fails('compiler! doesnotexist', 'E666:')
unlet! g:current_compiler
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -136,3 +136,5 @@ func Test_crypt_set_key_changes_buffer()
bwipe!
call delete('Xtest1.txt')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -196,3 +196,5 @@ func Test_cursorline_screenline()
call StopVimInTerminal(buf)
call delete(filename)
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -21,3 +21,5 @@ func Test_curswant()
enew!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1019,3 +1019,5 @@ func Test_debug_backtrace_level()
call delete('Xtest1.vim')
call delete('Xtest2.vim')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -110,3 +110,5 @@ func Test_delete_errors()
call assert_fails('call delete('''')', 'E474:')
call assert_fails('call delete(''foo'', 0)', 'E15:')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,4 +1,5 @@
" Tests for diff mode
source shared.vim
source screendump.vim
source check.vim
@ -654,9 +655,8 @@ endfunc
func Test_diffpatch()
" The patch program on MS-Windows may fail or hang.
if !executable('patch') || !has('unix')
return
endif
CheckExecutable patch
CheckUnix
new
insert
***************

View File

@ -453,9 +453,7 @@ func Test_digraphs_output()
endfunc
func Test_loadkeymap()
if !has('keymap')
return
endif
CheckFeature keymap
new
set keymap=czech
set iminsert=0
@ -494,9 +492,7 @@ endfunc
" Test for error in a keymap file
func Test_loadkeymap_error()
if !has('keymap')
return
endif
CheckFeature keymap
call assert_fails('loadkeymap', 'E105:')
call writefile(['loadkeymap', 'a'], 'Xkeymap')
call assert_fails('source Xkeymap', 'E791:')

View File

@ -1,4 +1,5 @@
" Test for displaying stuff
if !has('gui_running') && has('unix')
set term=ansi
endif
@ -243,3 +244,5 @@ func Test_visual_block_scroll()
call StopVimInTerminal(buf)
call delete(filename)
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -156,9 +156,8 @@ endfunc
func Test_edit_06()
" Test in diff mode
if !has("diff") || !executable("diff")
return
endif
CheckFeature diff
CheckExecutable diff
new
call setline(1, ['abc', 'xxx', 'yyy'])
vnew
@ -416,9 +415,7 @@ func Test_edit_CR()
" Test for <CR> in insert mode
" basically only in quickfix mode ist tested, the rest
" has been taken care of by other tests
if !has("quickfix")
return
endif
CheckFeature quickfix
botright new
call writefile(range(1, 10), 'Xqflist.txt')
call setqflist([{'filename': 'Xqflist.txt', 'lnum': 2}])
@ -446,10 +443,9 @@ func Test_edit_CR()
endfunc
func Test_edit_CTRL_()
CheckFeature rightleft
" disabled for Windows builds, why?
if !has("rightleft") || has("win32")
return
endif
CheckNotMSWindows
let _encoding=&encoding
set encoding=utf-8
" Test for CTRL-_
@ -951,9 +947,7 @@ func Test_edit_CTRL_Z()
endfunc
func Test_edit_DROP()
if !has("dnd")
return
endif
CheckFeature dnd
new
call setline(1, ['abc def ghi'])
call cursor(1, 1)
@ -967,9 +961,7 @@ func Test_edit_DROP()
endfunc
func Test_edit_CTRL_V()
if has("ebcdic")
return
endif
CheckFeature ebcdic
new
call setline(1, ['abc'])
call cursor(2, 1)
@ -1009,12 +1001,11 @@ endfunc
func Test_edit_F21()
" Pressing <f21>
" sends a netbeans command
if has("netbeans_intg")
new
" I have no idea what this is supposed to do :)
call feedkeys("A\<F21>\<F1>\<esc>", 'tnix')
bw
endif
CheckFeature netbeans_intg
new
" I have no idea what this is supposed to do :)
call feedkeys("A\<F21>\<F1>\<esc>", 'tnix')
bw
endfunc
func Test_edit_HOME_END()
@ -1095,9 +1086,7 @@ endfunc
func Test_edit_MOUSE()
" This is a simple test, since we not really using the mouse here
if !has("mouse")
return
endif
CheckFeature mouse
10new
call setline(1, range(1, 100))
call cursor(1, 1)
@ -1366,10 +1355,8 @@ func Test_edit_rightleft()
endfunc
func Test_edit_complete_very_long_name()
if !has('unix')
" Long directory names only work on Unix.
return
endif
" Long directory names only work on Unix.
CheckUnix
let dirname = getcwd() . "/Xdir"
let longdirname = dirname . repeat('/' . repeat('d', 255), 4)
@ -1710,8 +1697,7 @@ endfunc
func Test_edit_hkmap()
CheckFeature rightleft
if has('win32') && !has('gui')
" Test fails on the MS-Windows terminal version
return
throw 'Skipped: fails on the MS-Windows terminal version'
endif
new

View File

@ -1,3 +1,5 @@
" Test for environment variables.
scriptencoding utf-8
func Test_environ()
@ -42,3 +44,5 @@ func Test_external_env()
endif
call assert_equal('', result)
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,3 +1,4 @@
" Test for i_CTRL-W
func Test_erasebackword()
enew
@ -17,3 +18,5 @@ func Test_erasebackword()
enew!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,17 +1,17 @@
" Test whether glob()/globpath() return correct results with certain escaped
" characters.
source check.vim
func SetUp()
" consistent sorting of file names
set nofileignorecase
endfunction
function Test_glob()
if !has('unix')
" This test fails on Windows because of the special characters in the
" filenames. Disable the test on non-Unix systems for now.
return
endif
" This test fails on Windows because of the special characters in the
" filenames. Disable the test on non-Unix systems for now.
CheckUnix
" Execute these commands in the sandbox, so that using the shell fails.
" Setting 'shell' to an invalid name causes a memory leak.
@ -31,3 +31,5 @@ function Test_globpath()
sandbox call assert_equal(['sautest/autoload/globone.vim', 'sautest/autoload/globtwo.vim'],
\ 'glob*.vim'->globpath('sautest/autoload', 0, 1))
endfunction
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -30,3 +30,5 @@ func Test_ex_equal()
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -17,3 +17,5 @@ func Test_ex_undo()
call assert_equal(1, line('$'))
quit!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -83,3 +83,5 @@ func Test_z_negative_lnum()
call assert_equal(1, line('.'))
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -51,3 +51,5 @@ function Test_exec_while_if()
\ "8",
\ "9x"], getline(1, 10))
endfunction
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,4 +1,5 @@
" Tests for the exists() function
func Test_exists()
augroup myagroup
autocmd! BufEnter *.my echo "myfile edited"

View File

@ -24,3 +24,5 @@ function Test_AutoCommands()
edit testfile2.test
call assert_false(exists("#BufEnter#<buffer>"))
endfunction
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -81,3 +81,5 @@ func Test_exiting()
endif
call delete('Xtestout')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,3 +1,5 @@
" Test for expanding dllpath options
func s:test_expand_dllpath(optname)
let $TEST_EXPAND_DLLPATH = '/dllpath/lib' . substitute(a:optname, '\zedll$', '.', '')
execute 'let dllpath_save = &' . a:optname
@ -30,3 +32,5 @@ call s:generate_test_if_exists('pythondll')
call s:generate_test_if_exists('pythonthreedll')
call s:generate_test_if_exists('rubydll')
call s:generate_test_if_exists('tcldll')
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -32,3 +32,5 @@ func Test_strcharpart()
call assert_equal('̀', strcharpart('àxb', 1, 1))
call assert_equal('x', strcharpart('àxb', 2, 1))
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -12,3 +12,5 @@ func Test_feedkeys_x_with_empty_string()
call assert_equal('foo', getline('.'))
quit!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -7,15 +7,16 @@
"
" cksum is part of POSIX and so should be available on most Unixes.
" If it isn't available then the test will be skipped.
source check.vim
func Test_File_Size()
if !executable('cksum')
return
endif
CheckExecutable cksum
new
set fileformat=unix undolevels=-1
for i in range(1, 2000000, 100)
call append(i, range(i, i + 99))
call append(i, range(i, i + 99))
endfor
1delete
@ -56,3 +57,5 @@ func Test_File_Read_Write()
enew!
call delete("Xtest")
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,3 +1,4 @@
" Test for 'fileformat'
" Test behavior of fileformat after bwipeout of last buffer
func Test_fileformat_after_bw()

View File

@ -189,3 +189,5 @@ func Test_filter_display()
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -161,3 +161,5 @@ func Test_find_complete()
call delete('Xfind', 'rf')
set path&
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -227,3 +227,5 @@ func Test_find_cmd()
call assert_fails('sfind', 'E471:')
call assert_fails('tabfind', 'E471:')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,4 +1,5 @@
" Tests for 'fixeol' and 'eol'
func Test_fixeol()
" first write two test files with and without trailing EOL
" use Unix fileformat for consistency
@ -46,3 +47,5 @@ func Test_fixeol()
set ff& fixeol& eol&
enew!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,4 +1,5 @@
" Test for flatting list.
func Test_flatten()
call assert_fails('call flatten(1)', 'E686:')
call assert_fails('call flatten({})', 'E686:')
@ -79,3 +80,5 @@ func Test_flatten()
call assert_equal([1, 2, 1, 2], flatten(l:x, 2))
call assert_equal([2, l:x], l:y)
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,5 +1,5 @@
" Test if fnameescape is correct for special chars like !
func Test_fnameescape()
let fname = 'Xspa ce'
let status = v:false

View File

@ -557,9 +557,7 @@ endfunc
" test syntax folding
func Test_fold_syntax()
if !has('syntax')
return
endif
CheckFeature syntax
enew!
set fdm=syntax fdl=0

View File

@ -1,4 +1,5 @@
" Tests for various functions.
source shared.vim
source check.vim
source term_util.vim
@ -297,9 +298,7 @@ func Test_strptime()
endfunc
func Test_resolve_unix()
if !has('unix')
return
endif
CheckUnix
" Xlink1 -> Xlink2
" Xlink2 -> Xlink3
@ -349,9 +348,7 @@ func s:normalize_fname(fname)
endfunc
func Test_resolve_win32()
if !has('win32')
return
endif
CheckMSWindows
" test for shortcut file
if executable('cscript')
@ -1243,13 +1240,13 @@ func Test_Executable()
call assert_equal(1, executable(catcmd))
call assert_equal('/' .. catcmd, catcmd->exepath())
bwipe
else
throw 'Skipped: does not work on this platform'
endif
endfunc
func Test_executable_longname()
if !has('win32')
return
endif
CheckMSWindows
let fname = 'X' . repeat('あ', 200) . '.bat'
call writefile([], fname)
@ -1418,13 +1415,12 @@ func Test_inputlist()
endfunc
func Test_balloon_show()
if has('balloon_eval')
" This won't do anything but must not crash either.
call balloon_show('hi!')
if !has('gui_running')
call balloon_show(range(3))
call balloon_show([])
endif
CheckFeature balloon_eval
" This won't do anything but must not crash either.
call balloon_show('hi!')
if !has('gui_running')
call balloon_show(range(3))
call balloon_show([])
endif
endfunc
@ -1654,9 +1650,7 @@ func Test_getchar()
endfunc
func Test_libcall_libcallnr()
if !has('libcall')
return
endif
CheckFeature libcall
if has('win32')
let libc = 'msvcrt.dll'

View File

@ -1,4 +1,5 @@
" Test ga normal command, and :ascii Ex command.
func Do_ga(c)
call setline(1, a:c)
let l:a = execute("norm 1goga")

View File

@ -1,3 +1,5 @@
" Test for getcwd()
func GetCwdInfo(win, tab)
let tab_changed = 0
let mod = ":t"
@ -262,3 +264,5 @@ function Test_Tab_Local_Cwd()
enew | only | tabonly
new
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -150,3 +150,5 @@ func Test_get_func()
endfunc
" get({partial}, {what} [, {default}]) - in test_partial.vim
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -30,3 +30,5 @@ func Test_glob2regpat_valid()
call assert_equal('^\\\(foo\|bar\\\)$', glob2regpat('\\{foo,bar\\}'))
endif
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,3 +1,5 @@
" Test for :global and :vglobal
source check.vim
func Test_yank_put_clipboard()

View File

@ -24,10 +24,9 @@ endfunc
" As for non-GUI, a balloon_show() test was already added with patch 8.0.0401
func Test_balloon_show()
if has('balloon_eval')
" This won't do anything but must not crash either.
call balloon_show('hi!')
endif
CheckFeature balloon_eval
" This won't do anything but must not crash either.
call balloon_show('hi!')
endfunc
func Test_colorscheme()
@ -177,9 +176,7 @@ func Test_set_background()
endfunc
func Test_set_balloondelay()
if !exists('+balloondelay')
return
endif
CheckOption balloondelay
let balloondelay_saved = &balloondelay
@ -214,9 +211,7 @@ func Test_set_balloondelay()
endfunc
func Test_set_ballooneval()
if !exists('+ballooneval')
return
endif
CheckOption ballooneval
let ballooneval_saved = &ballooneval
@ -233,9 +228,7 @@ func Test_set_ballooneval()
endfunc
func Test_set_balloonexpr()
if !exists('+balloonexpr')
return
endif
CheckOption balloonexpr
let balloonexpr_saved = &balloonexpr
@ -764,17 +757,16 @@ endfunc
func Test_encoding_conversion()
" GTK supports conversion between 'encoding' and "utf-8"
if has('gui_gtk')
let encoding_saved = &encoding
set encoding=latin1
CheckFeature gui_gtk
let encoding_saved = &encoding
set encoding=latin1
" would be nice if we could take a screenshot
intro
" sets the window title
edit SomeFile
" would be nice if we could take a screenshot
intro
" sets the window title
edit SomeFile
let &encoding = encoding_saved
endif
let &encoding = encoding_saved
endfunc
func Test_shell_command()

View File

@ -58,3 +58,5 @@ func Test_set_guioptions_for_p()
throw skipped
endif
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -207,9 +207,7 @@ func Test_highlight_eol_with_cursorline_vertsplit()
endfunc
func Test_highlight_eol_with_cursorline_rightleft()
if !has('rightleft')
return
endif
CheckFeature rightleft
let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
@ -358,9 +356,7 @@ func Test_highlight_eol_with_cursorline_linewrap()
endfunc
func Test_highlight_eol_with_cursorline_sign()
if !has('signs')
return
endif
CheckFeature signs
let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
@ -418,9 +414,7 @@ func Test_highlight_eol_with_cursorline_sign()
endfunc
func Test_highlight_eol_with_cursorline_breakindent()
if !has('linebreak')
return
endif
CheckFeature linebreak
let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
@ -516,9 +510,7 @@ func Test_highlight_eol_on_diff()
endfunc
func Test_termguicolors()
if !exists('+termguicolors')
return
endif
CheckOption termguicolors
if has('vtp') && !has('vcon') && !has('gui_running')
" Win32: 'guicolors' doesn't work without virtual console.
call assert_fails('set termguicolors', 'E954:')

View File

@ -1,5 +1,7 @@
" Test for v:hlsearch
source check.vim
func Test_hlsearch()
new
call setline(1, repeat(['aaa'], 10))
@ -33,9 +35,7 @@ func Test_hlsearch()
endfunc
func Test_hlsearch_hangs()
if !has('reltime') || !has('float')
return
endif
CheckFunction reltimefloat
" This pattern takes a long time to match, it should timeout.
new
@ -63,3 +63,5 @@ func Test_hlsearch_eol_highlight()
set nohlsearch
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,3 +1,5 @@
" Test for 'iminsert'
source view_util.vim
source check.vim
@ -89,8 +91,7 @@ func Test_iminsert_toggle()
CheckFeature xim
endif
if has('gui_running') && !has('win32')
" this works only in Win32 GUI version (for some reason)
return
throw 'Skipped: works only in Win32 GUI version (for some reason)'
endif
new
let save_imdisable = &imdisable

View File

@ -1,4 +1,5 @@
" Tests for using Ctrl-A/Ctrl-X using DBCS.
set encoding=cp932
scriptencoding cp932

View File

@ -1,3 +1,5 @@
" Test for insert completion
source screendump.vim
source check.vim

View File

@ -25,3 +25,5 @@ func Test_interrupt()
call assert_equal(0, s:bufwritepost_called)
call assert_equal(0, filereadable('Xfile'))
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -2,16 +2,15 @@
" leaks under valgrind. That is because when fork/exec fails memory is not
" freed. Since the process exits right away it's not a real leak.
source shared.vim
source check.vim
func Test_job_start_fails()
if has('job')
let job = job_start('axdfxsdf')
if has('unix')
call WaitForAssert({-> assert_equal("dead", job_status(job))})
else
call WaitForAssert({-> assert_equal("fail", job_status(job))})
endif
CheckFeature job
let job = job_start('axdfxsdf')
if has('unix')
call WaitForAssert({-> assert_equal("dead", job_status(job))})
else
call WaitForAssert({-> assert_equal("fail", job_status(job))})
endif
endfunc

View File

@ -444,3 +444,5 @@ func Test_join_lines()
call assert_equal(['a', 'b c'], getline(1, '$'))
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -323,3 +323,5 @@ func Test_json_encode_long()
let json = json_encode([repeat('a', 3996)])
call assert_equal(4000, len(json))
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,10 +1,10 @@
" Tests for the jumplist functionality
source check.vim
" Tests for the getjumplist() function
func Test_getjumplist()
if !has("jumplist")
return
endif
CheckFeature jumplist
%bwipe
clearjumps
@ -64,3 +64,5 @@ func Test_getjumplist()
call delete("Xtest")
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,3 +1,5 @@
" Test for '' mark in an empty buffer
func Test_empty_buffer()
new
insert
@ -9,3 +11,5 @@ d
call assert_equal(1, line("''"))
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,5 +1,7 @@
" Test for lambda and closure
source check.vim
func Test_lambda_feature()
call assert_equal(1, has('lambda'))
endfunc
@ -19,9 +21,7 @@ func Test_lambda_with_sort()
endfunc
func Test_lambda_with_timer()
if !has('timers')
return
endif
CheckFeature timers
let s:n = 0
let s:timer_id = 0

View File

@ -52,3 +52,5 @@ func Test_langmap()
set langmap&
quit!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -27,3 +27,5 @@ func Test_largefile()
call assert_true(fsize == 4000000000)
call delete(fname)
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,5 +1,6 @@
" Tests for saving/loading a file with some lines ending in
" CTRL-M, some not
func Test_lineending()
let l = ["this line ends in a\<CR>",
\ "this one doesn't",
@ -17,3 +18,5 @@ func Test_lineending()
new | only
call delete('Xfile1')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -204,3 +204,5 @@ func Test_listchars_composing()
enew!
set listchars& ff&
endfunction
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -358,14 +358,16 @@ func Test_listener_cleared_newbuf()
endfunc
func Test_col_after_deletion_moved_cur()
func Listener(bufnr, start, end, added, changes)
func Listener(bufnr, start, end, added, changes)
call assert_equal([#{lnum: 1, end: 2, added: 0, col: 2}], a:changes)
endfunc
new
call setline(1, ['foo'])
let lid = listener_add('Listener')
call feedkeys("lD", 'xt')
endfunc
new
call setline(1, ['foo'])
let lid = listener_add('Listener')
call feedkeys("lD", 'xt')
call listener_flush()
bwipe!
delfunc Listener
bwipe!
delfunc Listener
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -263,4 +263,6 @@ func Test_list_with_tab_and_skipping_first_chars()
\ ]
call s:compare_lines(expect, lines)
call s:close_windows()
endfu
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -269,4 +269,6 @@ func Test_chinese_char_on_wrap_column()
let lines = s:screen_lines([1, 10], winwidth(0))
call s:compare_lines(expect, lines)
call s:close_windows()
endfu
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -102,3 +102,5 @@ func Test_make()
lclose
endfor
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -131,3 +131,5 @@ func Test_keep_unnamed_register()
%bw!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -92,9 +92,7 @@ func Test_map_ctrl_c_visual()
endfunc
func Test_map_langmap()
if !has('langmap')
return
endif
CheckFeature langmap
" check langmap applies in normal mode
set langmap=+- nolangremap
@ -259,9 +257,7 @@ func Test_abbr_after_line_join()
endfunc
func Test_map_timeout()
if !has('timers')
return
endif
CheckFeature timers
nnoremap aaaa :let got_aaaa = 1<CR>
nnoremap bb :let got_bb = 1<CR>
nmap b aaa
@ -290,9 +286,8 @@ func Test_map_timeout()
endfunc
func Test_map_timeout_with_timer_interrupt()
if !has('job') || !has('timers')
return
endif
CheckFeature job
CheckFeature timers
" Confirm the timer invoked in exit_cb of the job doesn't disturb mapped key
" sequence.

View File

@ -1,3 +1,4 @@
" Test for marks
" Test that a deleted mark is restored after delete-undo-redo-undo.
func Test_Restore_DelMark()

View File

@ -405,3 +405,5 @@ func Test_cursor_column_in_concealed_line_after_leftcol_change()
call StopVimInTerminal(buf)
call delete('Xcurs-columns')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -41,3 +41,5 @@ func Test_match_using_multibyte_conceal_char()
quit!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -162,3 +162,5 @@ func Test_memory_func_capture_lvars()
call vim.stop()
call delete(testfile)
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -62,9 +62,7 @@ func Test_buffer_menu_special_buffers()
endfunc
func Test_translate_menu()
if !has('multi_lang')
return
endif
CheckFeature multi_lang
if !filereadable($VIMRUNTIME . '/lang/menu_de_de.latin1.vim')
throw 'Skipped: translated menu not found'
endif

View File

@ -94,9 +94,8 @@ func Test_echoerr()
endfunc
func Test_mode_message_at_leaving_insert_by_ctrl_c()
if !has('terminal') || has('gui_running')
return
endif
CheckFeature terminal
CheckNotGui
" Set custom statusline built by user-defined function.
let testfile = 'Xtest.vim'
@ -126,9 +125,8 @@ func Test_mode_message_at_leaving_insert_by_ctrl_c()
endfunc
func Test_mode_message_at_leaving_insert_with_esc_mapped()
if !has('terminal') || has('gui_running')
return
endif
CheckFeature terminal
CheckNotGui
" Set custom statusline built by user-defined function.
let testfile = 'Xtest.vim'

View File

@ -150,10 +150,9 @@ func Test_mksession_large_winheight()
endfunc
func Test_mksession_rtp()
if has('win32')
" TODO: fix problem with backslashes
return
endif
" TODO: fix problem with backslashes on Win32
CheckNotMSWindows
new
let _rtp=&rtp
" Make a real long (invalid) runtimepath value,
@ -552,10 +551,9 @@ func Test_mksession_no_errmsg()
endfunc
func Test_mksession_quote_in_filename()
if !has('unix')
" only Unix can handle this weird filename
return
endif
" only Unix can handle this weird filename
CheckUnix
let v:errmsg = ''
%bwipe!
split another
@ -721,10 +719,9 @@ endfunc
" Test for mksession with window position
func Test_mksession_winpos()
if !has('gui_running')
" Only applicable in GUI Vim
return
endif
" Only applicable in GUI Vim
CheckGui
set sessionoptions+=winpos
mksession! Xtest_mks.out
let found_winpos = v:false

View File

@ -1,5 +1,7 @@
" Tests for parsing the modeline.
source check.vim
func Test_modeline_invalid()
" This was reading allocated memory in the past.
call writefile(['vi:0', 'nothing'], 'Xmodeline')
@ -62,9 +64,7 @@ func Test_modeline_syntax()
endfunc
func Test_modeline_keymap()
if !has('keymap')
return
endif
CheckFeature keymap
call writefile(['vim: set keymap=greek :', 'nothing'], 'Xmodeline_keymap')
let modeline = &modeline
set modeline
@ -170,9 +170,7 @@ func Test_modeline_colon()
endfunc
func s:modeline_fails(what, text, error)
if !exists('+' .. a:what)
return
endif
call CheckOption(a:what)
let fname = "Xmodeline_fails_" . a:what
call writefile(['vim: set ' . a:text . ' :', 'nothing'], fname)
let modeline = &modeline
@ -335,3 +333,5 @@ func Test_modeline_setoption_verbose()
let &modeline = modeline
call delete('Xmodeline')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -1,5 +1,7 @@
"Tests for nested functions
"
" Tests for nested functions
source check.vim
func NestedFunc()
func! Func1()
let g:text .= 'Func1 '
@ -49,9 +51,8 @@ endfunc
func Test_max_nesting()
" TODO: why does this fail on Windows? Runs out of stack perhaps?
if has('win32')
return
endif
CheckNotMSWindows
let call_depth_here = 2
let ex_depth_here = 5
set mfd&
@ -65,3 +66,5 @@ func Test_max_nesting()
set mfd&
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -297,3 +297,5 @@ func Test_relativenumber_colors()
call StopVimInTerminal(buf)
call delete('XTest_relnr')
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -136,12 +136,11 @@ func Test_path_keep_commas()
endfunc
func Test_signcolumn()
if has('signs')
call assert_equal("auto", &signcolumn)
set signcolumn=yes
set signcolumn=no
call assert_fails('set signcolumn=nope')
endif
CheckFeature signs
call assert_equal("auto", &signcolumn)
set signcolumn=yes
set signcolumn=no
call assert_fails('set signcolumn=nope')
endfunc
func Test_filetype_valid()
@ -162,9 +161,7 @@ func Test_filetype_valid()
endfunc
func Test_syntax_valid()
if !has('syntax')
return
endif
CheckFeature syntax
set syn=valid_name
call assert_equal("valid_name", &syntax)
set syn=valid-name
@ -182,9 +179,7 @@ func Test_syntax_valid()
endfunc
func Test_keymap_valid()
if !has('keymap')
return
endif
CheckFeature keymap
call assert_fails(":set kmp=valid_name", "E544:")
call assert_fails(":set kmp=valid_name", "valid_name")
call assert_fails(":set kmp=valid-name", "E544:")

View File

@ -1,5 +1,6 @@
" Tests for 'packpath' and :packadd
source check.vim
func SetUp()
let s:topdir = getcwd() . '/Xdir'
@ -115,9 +116,7 @@ func Test_packadd_noload()
endfunc
func Test_packadd_symlink_dir()
if !has('unix')
return
endif
CheckUnix
let top2_dir = s:topdir . '/Xdir2'
let real_dir = s:topdir . '/Xsym'
call mkdir(real_dir, 'p')
@ -150,9 +149,7 @@ func Test_packadd_symlink_dir()
endfunc
func Test_packadd_symlink_dir2()
if !has('unix')
return
endif
CheckUnix
let top2_dir = s:topdir . '/Xdir2'
let real_dir = s:topdir . '/Xsym/pack'
call mkdir(top2_dir, 'p')

View File

@ -1,5 +1,7 @@
" Test binding arguments to a Funcref.
source check.vim
func MyFunc(arg1, arg2, arg3)
return a:arg1 . '/' . a:arg2 . '/' . a:arg3
endfunc
@ -235,17 +237,16 @@ func Test_redefine_dict_func()
endfunc
func Test_bind_in_python()
if has('python')
let g:d = {}
function g:d.test2()
endfunction
python import vim
try
call assert_equal(pyeval('vim.bindeval("g:d.test2")'), g:d.test2)
catch
call assert_true(v:false, v:exception)
endtry
endif
CheckFeature python
let g:d = {}
function g:d.test2()
endfunction
python import vim
try
call assert_equal(pyeval('vim.bindeval("g:d.test2")'), g:d.test2)
catch
call assert_true(v:false, v:exception)
endtry
endfunc
" This caused double free on exit if EXITFREE is defined.
@ -270,23 +271,21 @@ func Ignored3(job1, job2, status)
endfunc
func Test_cycle_partial_job()
if has('job')
let job = job_start('echo')
call job_setoptions(job, {'exit_cb': function('Ignored3', [job])})
unlet job
endif
CheckFeature job
let job = job_start('echo')
call job_setoptions(job, {'exit_cb': function('Ignored3', [job])})
unlet job
endfunc
func Ignored2(job, status)
endfunc
func Test_ref_job_partial_dict()
if has('job')
let g:ref_job = job_start('echo')
let d = {'a': 'b'}
call job_setoptions(g:ref_job, {'exit_cb': function('Ignored2', [], d)})
call test_garbagecollect_now()
endif
CheckFeature job
let g:ref_job = job_start('echo')
let d = {'a': 'b'}
call job_setoptions(g:ref_job, {'exit_cb': function('Ignored2', [], d)})
call test_garbagecollect_now()
endfunc
func Test_auto_partial_rebind()

View File

@ -135,9 +135,7 @@ func CheckCopyPaste()
endfunc
func Test_xrestore()
if !has('xterm_clipboard')
return
endif
CheckFeature xterm_clipboard
let display = $DISPLAY
new
call CheckCopyPaste()

Some files were not shown because too many files have changed in this diff Show More