mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:9.1.0860: tests: mouse_shape tests use hard code sleep value (#31184)
Problem: tests: mouse_shape tests use hard code sleep value
(Bram Moolenaar)
Solution: Use WaitForAssert() instead (Yee Cheng Chin)
related: vim/vim#12157
closes: vim/vim#16042
24078e39cd
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
This commit is contained in:
parent
86b737649b
commit
1643c49514
@ -3958,8 +3958,7 @@ func Test_mouse_shape_after_failed_change()
|
|||||||
END
|
END
|
||||||
call writefile(lines, 'Xmouseshape.vim', 'D')
|
call writefile(lines, 'Xmouseshape.vim', 'D')
|
||||||
call RunVim([], [], "-g -S Xmouseshape.vim")
|
call RunVim([], [], "-g -S Xmouseshape.vim")
|
||||||
sleep 300m
|
call WaitForAssert({-> assert_equal(['busy', 'arrow'], readfile('Xmouseshapes'))}, 300)
|
||||||
call assert_equal(['busy', 'arrow'], readfile('Xmouseshapes'))
|
|
||||||
|
|
||||||
call delete('Xmouseshapes')
|
call delete('Xmouseshapes')
|
||||||
endfunc
|
endfunc
|
||||||
@ -3990,8 +3989,7 @@ func Test_mouse_shape_after_cancelling_gr()
|
|||||||
END
|
END
|
||||||
call writefile(lines, 'Xmouseshape.vim', 'D')
|
call writefile(lines, 'Xmouseshape.vim', 'D')
|
||||||
call RunVim([], [], "-g -S Xmouseshape.vim")
|
call RunVim([], [], "-g -S Xmouseshape.vim")
|
||||||
sleep 300m
|
call WaitForAssert({-> assert_equal(['beam', 'arrow'], readfile('Xmouseshapes'))}, 300)
|
||||||
call assert_equal(['beam', 'arrow'], readfile('Xmouseshapes'))
|
|
||||||
|
|
||||||
call delete('Xmouseshapes')
|
call delete('Xmouseshapes')
|
||||||
endfunc
|
endfunc
|
||||||
|
Loading…
Reference in New Issue
Block a user