Mercurial > vim
comparison src/testdir/test_timers.vim @ 20625:116c7bd5e980 v8.2.0866
patch 8.2.0866: not enough tests for buffer writing
Commit: https://github.com/vim/vim/commit/494e9069cb32620f7688a7cb128a3feff827639e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 31 21:28:02 2020 +0200
patch 8.2.0866: not enough tests for buffer writing
Problem: Not enough tests for buffer writing.
Solution: Add more tests. Use CheckRunVimInTerminal in more places.
(Yegappan Lakshmanan, closes #6167)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 May 2020 21:30:03 +0200 |
parents | c087099e9163 |
children | a2262c80a4e0 |
comparison
equal
deleted
inserted
replaced
20624:f782c48d548a | 20625:116c7bd5e980 |
---|---|
322 exe "normal Qsleep 100m\rvi\r" | 322 exe "normal Qsleep 100m\rvi\r" |
323 call timer_stop(timer) | 323 call timer_stop(timer) |
324 endfunc | 324 endfunc |
325 | 325 |
326 func Test_timer_restore_count() | 326 func Test_timer_restore_count() |
327 if !CanRunVimInTerminal() | 327 CheckRunVimInTerminal |
328 throw 'Skipped: cannot run Vim in a terminal window' | |
329 endif | |
330 " Check that v:count is saved and restored, not changed by a timer. | 328 " Check that v:count is saved and restored, not changed by a timer. |
331 call writefile([ | 329 call writefile([ |
332 \ 'nnoremap <expr><silent> L v:count ? v:count . "l" : "l"', | 330 \ 'nnoremap <expr><silent> L v:count ? v:count . "l" : "l"', |
333 \ 'func Doit(id)', | 331 \ 'func Doit(id)', |
334 \ ' normal 3j', | 332 \ ' normal 3j', |