Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 17089:8e9e9124c7a2 v8.1.1544
patch 8.1.1544: some balloon tests don't run when they can
commit https://github.com/vim/vim/commit/b46fecd3454399f8ebdc5055302e4bfc5a10f98b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 15 17:58:09 2019 +0200
patch 8.1.1544: some balloon tests don't run when they can
Problem: Some balloon tests don't run when they can.
Solution: Split GUI balloon tests off into a separate file. (Ozaki Kiichi,
closes #4538) Change the feature check into a command for
consistency.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jun 2019 18:00:08 +0200 |
parents | 2546930657a9 |
children | 94007c802045 |
comparison
equal
deleted
inserted
replaced
17088:49eb35886d80 | 17089:8e9e9124c7a2 |
---|---|
1 " Tests for popup windows | 1 " Tests for popup windows |
2 | 2 |
3 if !has('textprop') | 3 source check.vim |
4 throw 'Skipped: textprop feature missing' | 4 CheckFeature textprop |
5 endif | |
6 | 5 |
7 source screendump.vim | 6 source screendump.vim |
8 | 7 |
9 func Test_simple_popup() | 8 func Test_simple_popup() |
10 if !CanRunVimInTerminal() | 9 if !CanRunVimInTerminal() |
513 call delete('XtestPopup') | 512 call delete('XtestPopup') |
514 endfunc | 513 endfunc |
515 | 514 |
516 func Test_popup_time() | 515 func Test_popup_time() |
517 if !has('timers') | 516 if !has('timers') |
518 throw 'Skipped, timer feature not supported' | 517 throw 'Skipped: timer feature not supported' |
519 endif | 518 endif |
520 topleft vnew | 519 topleft vnew |
521 call setline(1, 'hello') | 520 call setline(1, 'hello') |
522 | 521 |
523 call popup_create('world', { | 522 call popup_create('world', { |
1174 call test_override('ALL', 0) | 1173 call test_override('ALL', 0) |
1175 endfunc | 1174 endfunc |
1176 | 1175 |
1177 func Test_notifications() | 1176 func Test_notifications() |
1178 if !has('timers') | 1177 if !has('timers') |
1179 throw 'Skipped, timer feature not supported' | 1178 throw 'Skipped: timer feature not supported' |
1180 endif | 1179 endif |
1181 if !CanRunVimInTerminal() | 1180 if !CanRunVimInTerminal() |
1182 throw 'Skipped: cannot make screendumps' | 1181 throw 'Skipped: cannot make screendumps' |
1183 endif | 1182 endif |
1184 | 1183 |