| " 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 |
| |
| exec "help! abs({expr})" |
| call assert_equal("help", &filetype) |
| call assert_true(getline('.') =~ '\*abs()\*') |
| helpclose |
| |
| exec "help! arglistid([{winnr}" |
| call assert_equal("help", &filetype) |
| call assert_true(getline('.') =~ '\*arglistid()\*') |
| helpclose |
| endfunc |