view src/testdir/test_balloon_gui.vim @ 19350:76cb39bf1871 v8.2.0233

patch 8.2.0233: crash when using garbagecollect() in between rand() Commit: https://github.com/vim/vim/commit/4f645c54efe33d7a11e314676e503118761f08a7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 8 16:40:39 2020 +0100 patch 8.2.0233: crash when using garbagecollect() in between rand() Problem: Crash when using garbagecollect() in between rand(). Solution: Redesign the rand() and srand() implementation. (Yasuhiro Matsumoto, closes #5587, closes #5588)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Feb 2020 16:45:04 +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