view src/testdir/test_balloon_gui.vim @ 19199:8cbadf7fb9d4 v8.2.0158

patch 8.2.0158: triggering CompleteDone earlier is not backwards compatible Commit: https://github.com/vim/vim/commit/3f169ce17e8b779d105c96138a8b4246f2d270b9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 26 22:43:31 2020 +0100 patch 8.2.0158: triggering CompleteDone earlier is not backwards compatible Problem: Triggering CompleteDone earlier is not backwards compatible. (Daniel Hahler) Solution: Add CompleteDonePre instead.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Jan 2020 22:45:03 +0100
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