2019-06-15 17:58:09 +02:00
|
|
|
" Tests for 'ballooneval' in the GUI.
|
|
|
|
|
|
|
|
|
|
source check.vim
|
2019-08-08 21:52:39 +02:00
|
|
|
CheckGui
|
2019-06-15 17:58:09 +02:00
|
|
|
CheckFeature balloon_eval
|
|
|
|
|
|
|
|
|
|
func Test_balloon_show_gui()
|
|
|
|
|
let msg = 'this this this this'
|
|
|
|
|
call balloon_show(msg)
|
|
|
|
|
call assert_equal(msg, balloon_gettext())
|
|
|
|
|
sleep 10m
|
|
|
|
|
call balloon_show('')
|
|
|
|
|
|
|
|
|
|
let msg = 'that that'
|
2019-08-18 23:01:56 +02:00
|
|
|
eval msg->balloon_show()
|
2019-06-15 17:58:09 +02:00
|
|
|
call assert_equal(msg, balloon_gettext())
|
|
|
|
|
sleep 10m
|
|
|
|
|
call balloon_show('')
|
|
|
|
|
endfunc
|
2020-08-12 18:50:36 +02:00
|
|
|
|
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|