2020-07-30 05:29:03 +02:00
|
|
|
# See Issue #580
|
2019-07-14 15:32:38 +02:00
|
|
|
|
2019-07-17 15:13:36 +02:00
|
|
|
Execute (Set fold method):
|
|
|
|
let g:vimwiki_folding = 'expr:quick'
|
|
|
|
call ReloadVimwiki()
|
2019-07-14 15:32:38 +02:00
|
|
|
|
|
|
|
Execute (Expect < 0.5 second delay: Issue #580):
|
|
|
|
" prep
|
|
|
|
edit test/resources/delay.wiki
|
|
|
|
normal! 50%
|
2020-05-13 17:33:37 +02:00
|
|
|
# TODO set ft and set wiki syntax or this error (no fold found)
|
|
|
|
# normal! zozo
|
2019-07-14 15:32:38 +02:00
|
|
|
tabedit
|
|
|
|
|
|
|
|
" run test
|
|
|
|
let start = reltime()
|
|
|
|
tabprev
|
|
|
|
redraw
|
|
|
|
let end = str2float(reltimestr(reltime(start)))
|
|
|
|
|
|
|
|
" cleanup
|
|
|
|
bdelete test/resources/delay.wiki
|
|
|
|
|
|
|
|
" verify
|
|
|
|
Log 'Elapsed time = ' . string(end)
|
|
|
|
Assert end < 0.5, 'Took longer than expected: ' . string(end) . ' seconds'
|
2019-07-17 15:13:36 +02:00
|
|
|
|
|
|
|
Execute (Reset variables):
|
|
|
|
let g:vimwiki_folding = ''
|
|
|
|
call ReloadVimwiki()
|