comparison src/testdir/test_popupwin.vim @ 16802:f5487021fdad v8.1.1403

patch 8.1.1403: cannot build without the timer feature commit https://github.com/vim/vim/commit/35d5af6c0b618aef9ca87b05b2e184934e47d916 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 26 20:44:10 2019 +0200 patch 8.1.1403: cannot build without the timer feature Problem: Cannot build without the timer feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 May 2019 20:45:05 +0200
parents 12e3a3afdb6a
children 306766ed0f70
comparison
equal deleted inserted replaced
16801:2d9d64daf580 16802:f5487021fdad
37 call StopVimInTerminal(buf) 37 call StopVimInTerminal(buf)
38 call delete('XtestPopup') 38 call delete('XtestPopup')
39 endfunc 39 endfunc
40 40
41 func Test_popup_time() 41 func Test_popup_time()
42 if !has('timers')
43 return
44 endif
42 topleft vnew 45 topleft vnew
43 call setline(1, 'hello') 46 call setline(1, 'hello')
44 47
45 call popup_create('world', { 48 call popup_create('world', {
46 \ 'line': 1, 49 \ 'line': 1,
50 redraw 53 redraw
51 let line = join(map(range(1, 5), 'screenstring(1, v:val)'), '') 54 let line = join(map(range(1, 5), 'screenstring(1, v:val)'), '')
52 call assert_equal('world', line) 55 call assert_equal('world', line)
53 56
54 sleep 700m 57 sleep 700m
58 redraw
55 let line = join(map(range(1, 5), 'screenstring(1, v:val)'), '') 59 let line = join(map(range(1, 5), 'screenstring(1, v:val)'), '')
56 call assert_equal('hello', line) 60 call assert_equal('hello', line)
57 61
58 call popup_create('on the command line', { 62 call popup_create('on the command line', {
59 \ 'line': &lines, 63 \ 'line': &lines,