comparison src/testdir/test_vim9_func.vim @ 22157:ba81f5e300b7 v8.2.1628

patch 8.2.1628: Vim9: cannot pass "true" to timer_paused() Commit: https://github.com/vim/vim/commit/418155def2aa45afd7fc034db341dc874b00af3a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 6 18:39:38 2020 +0200 patch 8.2.1628: Vim9: cannot pass "true" to timer_paused() Problem: Vim9: cannot pass "true" to timer_paused(). Solution: Use tv_get_bool(). (closes https://github.com/vim/vim/issues/6891)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Sep 2020 18:45:03 +0200
parents de47cb7b41e6
children 4b5f7869b8c0
comparison
equal deleted inserted replaced
22156:76e97e930c32 22157:ba81f5e300b7
1676 term_start(&shell, #{curwin: true}) 1676 term_start(&shell, #{curwin: true})
1677 assert_equal(winnr, winnr()) 1677 assert_equal(winnr, winnr())
1678 bwipe! 1678 bwipe!
1679 enddef 1679 enddef
1680 1680
1681 def Test_timer_paused()
1682 let id = timer_start(50, {-> 0})
1683 timer_pause(id, true)
1684 let info = timer_info(id)
1685 assert_equal(1, info[0]['paused'])
1686 timer_stop(id)
1687 enddef
1688
1681 def Test_win_splitmove() 1689 def Test_win_splitmove()
1682 split 1690 split
1683 win_splitmove(1, 2, #{vertical: true, rightbelow: true}) 1691 win_splitmove(1, 2, #{vertical: true, rightbelow: true})
1684 close 1692 close
1685 enddef 1693 enddef