Add vader tests and docker setup

This commit is contained in:
Rane Brown
2019-07-14 07:32:38 -06:00
parent 0441be5e34
commit 94d62ad7f2
5 changed files with 108 additions and 18 deletions

31
test/tabnext_delay.vader Normal file
View File

@ -0,0 +1,31 @@
Before (Setup):
let g:vimwiki_folding = 'expr:quick'
" clear mappings so plugin can be reloaded
" this is needed if running manually multiple times
nmapclear
" reload the plugin to set the fold method
unlet g:loaded_vimwiki
source plugin/vimwiki.vim
Execute (Expect < 0.5 second delay: Issue #580):
" prep
edit test/resources/delay.wiki
normal! 50%
normal! zozo
tabedit
" run test
let start = reltime()
tabprev
redraw
let end = str2float(reltimestr(reltime(start)))
" cleanup
bdelete test/resources/delay.wiki
tabclose
" verify
Log 'Elapsed time = ' . string(end)
Assert end < 0.5, 'Took longer than expected: ' . string(end) . ' seconds'