diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-25 22:49:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 22:49:57 +0800 |
commit | c111460b1a2686de3892a40f71e5ae21bdbae8b7 (patch) | |
tree | aa73df48d80bc4e528409ae01f37d46505a11945 /test | |
parent | bfa92d3861e425b59f9b1793c08247965a8e53f5 (diff) | |
parent | 1dd9cd29652dd3ab5e960eb94bc9f7f48ff97670 (diff) | |
download | rneovim-c111460b1a2686de3892a40f71e5ae21bdbae8b7.tar.gz rneovim-c111460b1a2686de3892a40f71e5ae21bdbae8b7.tar.bz2 rneovim-c111460b1a2686de3892a40f71e5ae21bdbae8b7.zip |
Merge pull request #23313 from zeertzjq/vim-8.2.3768
vim-patch:8.2.{3768,3772}
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_timers.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/old/testdir/test_timers.vim b/test/old/testdir/test_timers.vim index aa766fff40..b5781748bc 100644 --- a/test/old/testdir/test_timers.vim +++ b/test/old/testdir/test_timers.vim @@ -94,6 +94,12 @@ func Test_timer_info() call assert_equal([], timer_info(id)) call assert_fails('call timer_info("abc")', 'E39:') + + " check repeat count inside the callback + let g:timer_repeat = [] + let tid = timer_start(10, {tid -> execute("call add(g:timer_repeat, timer_info(tid)[0].repeat)")}, #{repeat: 3}) + call WaitForAssert({-> assert_equal([2, 1, 0], g:timer_repeat)}) + unlet g:timer_repeat endfunc func Test_timer_stopall() |