Problem: Quite a few beeps when running tests.
Solution: Set 'belloff' for these tests. (Christian Brabandt)
Test for visual mode not being reset causing E315 error.
STARTTEST
:so small.vim
+:set belloff=all
:enew
:let g:msg="Everything's fine."
:function! TriggerTheProblem()
STARTTEST
:so small.vim
+:set belloff=all
/Start cursor here
vaBiBD:?Bug?,/Piece/-2w! test.out
/^- Bug
STARTTEST
:" Test with backspace set to the non-compatible setting
+:set belloff=all
/^\d\+ this
:set cp bs=2
Avim1\15\e
STARTTEST
:so small.vim
+:set belloff=all
:" first write three test files, one in each format
:set fileformat=unix
:set fileformats=
STARTTEST
:so small.vim
:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
+:set belloff=all
:se cot=
\17nO#include "Xtestfile"
ru\ e\ e\18\ e\e\ 1
STARTTEST
:so small.vim
+:set belloff=all
:" We also need the +syntax feature here.
:if !has("syntax")
e! test.ok
STARTTEST
:so small.vim
+:set belloff=all
:"
:" Test 'undofile': first a simple one-line change.
:set nocompatible viminfo+=nviminfo visualbell
:set undofile
:bwipe!
:e Xtestfile
-:" TODO: this beeps
u:.w >>test.out
:"
:" Test 'undofile', add 10 lines, delete 6 lines, undo 3
STARTTEST
:so small.vim
+:set belloff=all
:" Do all test in a separate window to avoid E211 when we recursively
:" delete the Xfind directory during cleanup
:"
STARTTEST
:so small.vim
+:set belloff=all
:if !executable("cksum")
: e! test.ok
: w! test.out
STARTTEST
:so small.vim
-:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo
+:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo belloff=all
:e! Xtest
ggdG
:let text = "\tabcdefghijklmnoparstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnoparstuvwxyz0123456789"
STARTTEST
:so small.vim
+:set belloff=all
:so lua.vim
:set nocompatible viminfo+=nviminfo
:lua l = vim.list():add"item0":add"dictionary with list OK":add"item2"
STARTTEST
:so small.vim
+:set belloff=all
:set enc=utf-8 nocp viminfo+=nviminfo
:
:" User functions
" 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_autocmd.vim
source test_changedtick.vim
" runtest.vim. Checking for the multi_byte feature is in the individual
" files, so that they can be run by themselves.
+set belloff=all
source test_expr_utf8.vim
source test_matchadd_conceal_utf8.vim
source test_regexp_utf8.vim
STARTTEST
:so small.vim
+:set belloff=all
:let tests = []
:for i in range(5)
:new
" Tests for editing the command line.
+set belloff=all
+
func Test_complete_tab()
call writefile(['testfile'], 'Xtestfile')
call feedkeys(":e Xtest\t\r", "tx")
" Tests for diff mode
+set belloff=all
func Test_diff_fold_sync()
enew!
if !has("digraphs") || !has("multi_byte")
finish
endif
+set belloff=all
func! Put_Dig(chars)
exe "norm! o\<c-k>".a:chars
STARTTEST
:so small.vim
+:set belloff=all
:so mbyte.vim
:set encoding=utf-8
G
" Test for various Normal mode commands
+set belloff=all
func! Setup_NewWindow()
10new
call setline(1, range(1,100))
" Tests for 'packpath' and :packadd
+set belloff=all
+
func SetUp()
let s:topdir = expand('%:h') . '/Xdir'
exe 'set packpath=' . s:topdir
" Test for the search command
+set belloff=all
func Test_search_cmdline()
if !exists('+incsearch')
return
finish
endif
+set belloff=all
function! CpoM(line, useM, expected)
new
" 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
" Tests for user defined commands
" Test for <mods> in user defined commands
+set belloff=all
function Test_cmdmods()
let g:mods = ''
finish
endif
+set belloff=all
+
func Test_block_shift_multibyte()
" Uses double-wide character.
if !has('multi_byte')
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 433,
/**/
432,
/**/