Mercurial > vim
annotate src/testdir/test_help_tagjump.vim @ 8562:40b982c98587 v7.4.1571
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 15 16:35:39 2016 +0100
patch 7.4.1571
Problem: No test for ":help".
Solution: Add a test for what 7.4.1568 fixed. (Higashi Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 15 Mar 2016 16:45:05 +0100 |
parents | |
children | b7de875169e6 |
rev | line source |
---|---|
8562
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for :help! {subject} |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 func Test_help_tagjump() |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 help |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 call assert_equal("help", &filetype) |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 call assert_true(getline('.') =~ '\*help.txt\*') |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 helpclose |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 exec "help! ('textwidth'" |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 call assert_equal("help", &filetype) |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 call assert_true(getline('.') =~ "\\*'textwidth'\\*") |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 helpclose |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 exec "help! ('buflisted')," |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 call assert_equal("help", &filetype) |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 call assert_true(getline('.') =~ "\\*'buflisted'\\*") |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 helpclose |
40b982c98587
commit https://github.com/vim/vim/commit/8e15ffcde757ffc6cfe8b5e384948b3278e9af33
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 endfunc |