vim-patch:8.0.0433: beeps when running tests

Problem:    Quite a few beeps when running tests.
Solution:   Set 'belloff' for these tests. (Christian Brabandt)

c3c766ea8c
This commit is contained in:
Justin M. Keyes 2018-01-21 10:26:40 +01:00
parent 9c92eed86f
commit ce09d4134b
10 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
" A series of tests that can run in one Vim invocation.
" This makes testing go faster, since Vim doesn't need to restart.
set belloff=all
source test_assign.vim
source test_changedtick.vim
source test_cursor_func.vim

View File

@ -1,5 +1,7 @@
" Tests for editing the command line.
set belloff=all
func Test_complete_tab()
call writefile(['testfile'], 'Xtestfile')
call feedkeys(":e Xtestf\t\r", "tx")

View File

@ -1,4 +1,5 @@
" Tests for diff mode
set belloff=all
func Test_diff_fold_sync()
enew!

View File

@ -3,6 +3,7 @@
if !has("digraphs") || !has("multi_byte")
finish
endif
set belloff=all
func! Put_Dig(chars)
exe "norm! o\<c-k>".a:chars

View File

@ -2,6 +2,7 @@
source shared.vim
set belloff=all
func! Setup_NewWindow()
10new
call setline(1, range(1,100))

View File

@ -1,5 +1,6 @@
" Test for the search command
set belloff=all
func Test_search_cmdline()
" See test/functional/legacy/search_spec.lua
throw 'skipped: Nvim does not support test_disable_char_avail()'

View File

@ -4,6 +4,7 @@ if !has('textobjects')
finish
endif
set belloff=all
function! CpoM(line, useM, expected)
new

View File

@ -3,6 +3,7 @@
" undo-able pieces. Do that by setting 'undolevels'.
" Also tests :earlier and :later.
set belloff=all
func Test_undotree()
exe "normal Aabc\<Esc>"
set ul=100

View File

@ -1,6 +1,7 @@
" Tests for user defined commands
" Test for <mods> in user defined commands
set belloff=all
function Test_cmdmods()
let g:mods = ''

View File

@ -3,6 +3,8 @@ if !has('visual')
finish
endif
set belloff=all
func Test_block_shift_multibyte()
" Uses double-wide character.
if !has('multi_byte')