]> granicus.if.org Git - vim/commitdiff
patch 7.4.1571 v7.4.1571
authorBram Moolenaar <Bram@vim.org>
Tue, 15 Mar 2016 15:35:39 +0000 (16:35 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 15 Mar 2016 15:35:39 +0000 (16:35 +0100)
Problem:    No test for ":help".
Solution:   Add a test for what 7.4.1568 fixed. (Higashi Higashi)

src/testdir/test_alot.vim
src/testdir/test_help_tagjump.vim [new file with mode: 0644]
src/version.c

index 55502bae6c80bcdbb82a3b34964c3079fa61d912..f4a14503197a0ceee6a6cedcad5c85d2d563eaf6 100644 (file)
@@ -9,6 +9,7 @@ source test_expand.vim
 source test_feedkeys.vim
 source test_file_perm.vim
 source test_glob2regpat.vim
+source test_help_tagjump.vim
 source test_join.vim
 source test_lispwords.vim
 source test_menu.vim
diff --git a/src/testdir/test_help_tagjump.vim b/src/testdir/test_help_tagjump.vim
new file mode 100644 (file)
index 0000000..d1e9ad4
--- /dev/null
@@ -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
index f6b1f3baa8822f26286a352ba8ab6912b4f5cb3b..944ffea316e169753be33d1149457f267450278c 100644 (file)
@@ -743,6 +743,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1571,
 /**/
     1570,
 /**/