forked from aniani/vim
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695)
32 lines
750 B
VimL
32 lines
750 B
VimL
" Test the :behave command
|
|
|
|
func Test_behave()
|
|
behave mswin
|
|
call assert_equal('mouse,key', &selectmode)
|
|
call assert_equal('popup', &mousemodel)
|
|
call assert_equal('startsel,stopsel', &keymodel)
|
|
call assert_equal('exclusive', &selection)
|
|
|
|
behave xterm
|
|
call assert_equal('', &selectmode)
|
|
call assert_equal('extend', &mousemodel)
|
|
call assert_equal('', &keymodel)
|
|
call assert_equal('inclusive', &selection)
|
|
|
|
set selection&
|
|
set mousemodel&
|
|
set keymodel&
|
|
set selection&
|
|
endfunc
|
|
|
|
func Test_behave_completion()
|
|
call feedkeys(":behave \<C-A>\<C-B>\"\<CR>", 'tx')
|
|
call assert_equal('"behave mswin xterm', @:)
|
|
endfunc
|
|
|
|
func Test_behave_error()
|
|
call assert_fails('behave x', 'E475:')
|
|
endfunc
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|