tests: test arrow mappings

This commit is contained in:
Steve Losh 2010-12-09 22:02:46 -05:00
parent 7ed3cc2fc2
commit 25601aa8a1

View File

@ -62,6 +62,34 @@ function! s:TestMovementBasic()"{{{
" Move up
normal k
Assert g:CurrentLineContains("[3]")
" Test arrow mappings
Assert g:CurrentLineContains("[3]")
" Move down
exec "normal \<down>"
Assert g:CurrentLineContains("[2]")
" Move down
exec "normal \<down>"
Assert g:CurrentLineContains("[1]")
" Move down
exec "normal \<down>"
Assert g:CurrentLineContains("[0]")
" Move up
exec "normal \<up>"
Assert g:CurrentLineContains("[1]")
" Move up
exec "normal \<up>"
Assert g:CurrentLineContains("[2]")
" Move up
exec "normal \<up>"
Assert g:CurrentLineContains("[3]")
endfunction"}}}
function! s:TestMovementLinear()"{{{
@ -117,4 +145,8 @@ function! s:TestMovementLinear()"{{{
" Move up
normal k
Assert g:CurrentLineContains("[3]")
" Move up
normal k
Assert g:CurrentLineContains("[4]")
endfunction"}}}