view src/testdir/test_balloon_gui.vim @ 23547:7f09cfa9ac4a v8.2.2316

patch 8.2.2316: Vim9: cannot list a lambda function Commit: https://github.com/vim/vim/commit/b657198cb30765468451d7f68fce49b5b4000c5d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 8 22:24:19 2021 +0100 patch 8.2.2316: Vim9: cannot list a lambda function Problem: Vim9: cannot list a lambda function. Solution: Support the <lambda>9 notation, like :disassemble. (closes https://github.com/vim/vim/issues/7634)
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Jan 2021 22:30:06 +0100
parents 08940efa6b4e
children
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

" vim: shiftwidth=2 sts=2 expandtab