vim-patch:7.4.1571

patch 7.4.1571
Problem:    No test for ":help"
Solution:   Add a test for what 7.4.1568 fixed. (Higashi Higashi)

8e15ffcde7
This commit is contained in:
James McCoy 2016-05-16 21:58:42 -04:00
parent 10c819d453
commit 850f91c51c
3 changed files with 33 additions and 2 deletions

View File

@ -39,8 +39,9 @@ SCRIPTS := \
# Tests using runtest.vim.vim.
# Keep test_alot*.res as the last one, sort the others.
NEW_TESTS = \
test_viml.res \
test_cursor_func.res \
test_help_tagjump.res \
test_viml.res \
test_alot.res
SCRIPTS_GUI := test16.out

View File

@ -0,0 +1,30 @@
" Tests for :help! {subject}
func SetUp()
" v:progpath is …/build/bin/nvim and we need …/build/runtime
" to be added to &rtp
let builddir = fnamemodify(exepath(v:progpath), ':h:h')
let s:rtp = &rtp
let &rtp .= printf(',%s/runtime', builddir)
endfunc
func TearDown()
let &rtp = s:rtp
endfunc
func Test_help_tagjump()
help
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*help.txt\*')
helpclose
exec "help! ('textwidth'"
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ "\\*'textwidth'\\*")
helpclose
exec "help! ('buflisted'),"
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ "\\*'buflisted'\\*")
helpclose
endfunc

View File

@ -111,7 +111,7 @@ static int included_patches[] = {
1574,
// 1573,
// 1572 NA
// 1571,
1571,
1570,
1569,
1568,