blob: d01114c1c6f4add2554616ed17634777f1ce199c [file] [log] [blame]
Bram Moolenaarb46fecd2019-06-15 17:58:09 +02001" Tests for 'ballooneval' in the GUI.
2
Bram Moolenaarb46fecd2019-06-15 17:58:09 +02003source check.vim
Bram Moolenaar39de6412019-08-08 21:52:39 +02004CheckGui
Bram Moolenaarb46fecd2019-06-15 17:58:09 +02005CheckFeature balloon_eval
6
7func Test_balloon_show_gui()
8 let msg = 'this this this this'
9 call balloon_show(msg)
10 call assert_equal(msg, balloon_gettext())
11 sleep 10m
12 call balloon_show('')
13
14 let msg = 'that that'
Bram Moolenaar073e4b92019-08-18 23:01:56 +020015 eval msg->balloon_show()
Bram Moolenaarb46fecd2019-06-15 17:58:09 +020016 call assert_equal(msg, balloon_gettext())
17 sleep 10m
18 call balloon_show('')
19endfunc
Bram Moolenaar6d91bcb2020-08-12 18:50:36 +020020
21" vim: shiftwidth=2 sts=2 expandtab