mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.1.0860: tests: mouse_shape tests use hard code sleep value
Problem: tests: mouse_shape tests use hard code sleep value (Bram Moolenaar) Solution: Use WaitForAssert() instead (Yee Cheng Chin) related: #12157 closes: #16042 Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
13a6605ddf
commit
24078e39cd
@ -3948,8 +3948,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
|
||||||
@ -3980,8 +3979,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
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
860,
|
||||||
/**/
|
/**/
|
||||||
859,
|
859,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user