view src/testdir/test_balloon_gui.vim @ 17714:b3d48e304344 v8.1.1854

patch 8.1.1854: now another timer test is flaky commit https://github.com/vim/vim/commit/973d5304a44c974e74e43c3790f8919b7d4193b4 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 16 10:51:10 2019 +0200 patch 8.1.1854: now another timer test is flaky Problem: Now another timer test is flaky. Solution: Add test to list of flaky tests.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Aug 2019 11:00:07 +0200
parents 403ac78df9a0
children 45eca7143d7c
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'
  call balloon_show(msg)
  call assert_equal(msg, balloon_gettext())
  sleep 10m
  call balloon_show('')
endfunc