comparison src/testdir/test_quickfix.vim @ 20263:a85a3207679f v8.2.0687

patch 8.2.0687: some tests do not work on FreeBSD Commit: https://github.com/vim/vim/commit/41d4299f26cc98e253f9c63f8adc9dbb9d49ed5c Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 3 16:29:50 2020 +0200 patch 8.2.0687: some tests do not work on FreeBSD Problem: Some tests do not work on FreeBSD. Solution: Enable modeline. Use WaitFor() in more cases. (Ozaki Kiichi, closes #6036)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 May 2020 16:30:04 +0200
parents 2fb397573541
children d6827bd31d1d
comparison
equal deleted inserted replaced
20262:24a6768047f1 20263:a85a3207679f
1706 endfor 1706 endfor
1707 call writefile(l, a:filename) 1707 call writefile(l, a:filename)
1708 endfunc 1708 endfunc
1709 1709
1710 func Test_switchbuf() 1710 func Test_switchbuf()
1711 CheckNotBSD
1712 call s:create_test_file('Xqftestfile1') 1711 call s:create_test_file('Xqftestfile1')
1713 call s:create_test_file('Xqftestfile2') 1712 call s:create_test_file('Xqftestfile2')
1714 call s:create_test_file('Xqftestfile3') 1713 call s:create_test_file('Xqftestfile3')
1715 1714
1716 new | only 1715 new | only
1832 call assert_equal(1, tabpagenr()) 1831 call assert_equal(1, tabpagenr())
1833 call assert_equal('Xqftestfile1', bufname('')) 1832 call assert_equal('Xqftestfile1', bufname(''))
1834 1833
1835 " If opening a file changes 'switchbuf', then the new value should be 1834 " If opening a file changes 'switchbuf', then the new value should be
1836 " retained. 1835 " retained.
1836 set modeline&vim
1837 call writefile(["vim: switchbuf=split"], 'Xqftestfile1') 1837 call writefile(["vim: switchbuf=split"], 'Xqftestfile1')
1838 enew | only 1838 enew | only
1839 set switchbuf&vim 1839 set switchbuf&vim
1840 cexpr "Xqftestfile1:1:10" 1840 cexpr "Xqftestfile1:1:10"
1841 call assert_equal('split', &switchbuf) 1841 call assert_equal('split', &switchbuf)