Mercurial > vim
diff src/testdir/test_popup.vim @ 12644:1fad9675d8fd v8.0.1200
patch 8.0.1200: tests switch the bell off twice
commit https://github.com/vim/vim/commit/67418d97b457d2e27fe342472d3c9fd342ffc47f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 15 22:07:39 2017 +0200
patch 8.0.1200: tests switch the bell off twice
Problem: Tests switch the bell off twice.
Solution: Don't set 'belloff' in individual tests. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 15 Oct 2017 22:15:04 +0200 |
parents | 9359ed49d375 |
children | fad36581f788 |
line wrap: on
line diff
--- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -38,7 +38,6 @@ endfu func! Test_popup_complete() new inoremap <f5> <c-r>=ListMonths()<cr> - set belloff=all " <C-E> - select original typed text before the completion started call feedkeys("aJu\<f5>\<down>\<c-e>\<esc>", 'tx') @@ -215,7 +214,6 @@ func! Test_popup_complete() call feedkeys("aM\<f5>\<enter>\<esc>", 'tx') call assert_equal(["March", "M", "March"], getline(1,4)) %d - set belloff& endfu @@ -517,7 +515,6 @@ endfunc func Test_completion_respect_bs_option() new - set belloff=all let li = ["aaa", "aaa12345", "aaaabcdef", "aaaABC"] set bs=indent,eol @@ -533,7 +530,6 @@ func Test_completion_respect_bs_option() call feedkeys("A\<C-X>\<C-N>\<C-P>\<BS>\<BS>\<BS>\<Esc>", "tx") call assert_equal('', getline(1)) - set belloff& bw! endfunc @@ -620,7 +616,6 @@ endfunc func Test_complete_CTRLN_startofbuffer() new - set belloff=all call setline(1, [ 'organize(cupboard, 3, 2);', \ 'prioritize(bureau, 8, 7);', \ 'realize(bannister, 4, 4);', @@ -631,7 +626,6 @@ func Test_complete_CTRLN_startofbuffer() \ 'railing.moralize(3,9);'] call feedkeys("qai\<c-n>\<c-n>.\<esc>3wdW\<cr>q3@a", 'tx') call assert_equal(expected, getline(1,'$')) - set belloff& bwipe! endfunc