mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.1571
Problem: No test for ":help". Solution: Add a test for what 7.4.1568 fixed. (Higashi Higashi)
This commit is contained in:
@@ -9,6 +9,7 @@ source test_expand.vim
|
|||||||
source test_feedkeys.vim
|
source test_feedkeys.vim
|
||||||
source test_file_perm.vim
|
source test_file_perm.vim
|
||||||
source test_glob2regpat.vim
|
source test_glob2regpat.vim
|
||||||
|
source test_help_tagjump.vim
|
||||||
source test_join.vim
|
source test_join.vim
|
||||||
source test_lispwords.vim
|
source test_lispwords.vim
|
||||||
source test_menu.vim
|
source test_menu.vim
|
||||||
|
18
src/testdir/test_help_tagjump.vim
Normal file
18
src/testdir/test_help_tagjump.vim
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
" Tests for :help! {subject}
|
||||||
|
|
||||||
|
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
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1571,
|
||||||
/**/
|
/**/
|
||||||
1570,
|
1570,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user