view src/testdir/test_balloon_gui.vim @ 17968:22ddc0ee65e7 v8.1.1980

patch 8.1.1980: fix for search stat not tested Commit: https://github.com/vim/vim/commit/0f63ed33fdd12d8220f7bc7ff91095e7ceed9985 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 4 16:32:36 2019 +0200 patch 8.1.1980: fix for search stat not tested Problem: Fix for search stat not tested. Solution: Add a screenshot test. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Sep 2019 16:45:04 +0200
parents 45eca7143d7c
children 08940efa6b4e
line wrap: on
line source

" Tests for 'ballooneval' in the GUI.

source check.vim
CheckGui
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'
  eval msg->balloon_show()
  call assert_equal(msg, balloon_gettext())
  sleep 10m
  call balloon_show('')
endfunc