mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
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:
@@ -39,8 +39,9 @@ SCRIPTS := \
|
|||||||
# Tests using runtest.vim.vim.
|
# Tests using runtest.vim.vim.
|
||||||
# Keep test_alot*.res as the last one, sort the others.
|
# Keep test_alot*.res as the last one, sort the others.
|
||||||
NEW_TESTS = \
|
NEW_TESTS = \
|
||||||
test_viml.res \
|
|
||||||
test_cursor_func.res \
|
test_cursor_func.res \
|
||||||
|
test_help_tagjump.res \
|
||||||
|
test_viml.res \
|
||||||
test_alot.res
|
test_alot.res
|
||||||
|
|
||||||
SCRIPTS_GUI := test16.out
|
SCRIPTS_GUI := test16.out
|
||||||
|
30
src/nvim/testdir/test_help_tagjump.vim
Normal file
30
src/nvim/testdir/test_help_tagjump.vim
Normal 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
|
@@ -111,7 +111,7 @@ static int included_patches[] = {
|
|||||||
1574,
|
1574,
|
||||||
// 1573,
|
// 1573,
|
||||||
// 1572 NA
|
// 1572 NA
|
||||||
// 1571,
|
1571,
|
||||||
1570,
|
1570,
|
||||||
1569,
|
1569,
|
||||||
1568,
|
1568,
|
||||||
|
Reference in New Issue
Block a user