Mercurial > vim
annotate src/testdir/test_balloon_gui.vim @ 20251:9620ab71f4f3 v8.2.0681
patch 8.2.0681: pattern for 'hlsearch' highlighting may leak
Commit: https://github.com/vim/vim/commit/0b6849e9e302286e906d97e4ba017dd66561a9ce
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 2 18:33:25 2020 +0200
patch 8.2.0681: pattern for 'hlsearch' highlighting may leak
Problem: Pattern for 'hlsearch' highlighting may leak. (Dominique Pelle)
Solution: Call end_search_hl() to make sure the previous pattern is freed.
(closes #6028)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 May 2020 18:45:06 +0200 |
parents | 45eca7143d7c |
children | 08940efa6b4e |
rev | line source |
---|---|
17089
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 " Tests for 'ballooneval' in the GUI. |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 source check.vim |
17663
403ac78df9a0
patch 8.1.1829: difference in screenshots
Bram Moolenaar <Bram@vim.org>
parents:
17089
diff
changeset
|
4 CheckGui |
17089
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 CheckFeature balloon_eval |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 func Test_balloon_show_gui() |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 let msg = 'this this this this' |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 call balloon_show(msg) |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 call assert_equal(msg, balloon_gettext()) |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 sleep 10m |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 call balloon_show('') |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 let msg = 'that that' |
17783
45eca7143d7c
patch 8.1.1888: more functions can be used as methods
Bram Moolenaar <Bram@vim.org>
parents:
17663
diff
changeset
|
15 eval msg->balloon_show() |
17089
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
16 call assert_equal(msg, balloon_gettext()) |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
17 sleep 10m |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
18 call balloon_show('') |
8e9e9124c7a2
patch 8.1.1544: some balloon tests don't run when they can
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
19 endfunc |