diff 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
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -39,6 +39,9 @@ func Test_simple_popup()
 endfunc
 
 func Test_popup_time()
+  if !has('timers')
+    return
+  endif
   topleft vnew
   call setline(1, 'hello')
 
@@ -52,6 +55,7 @@ func Test_popup_time()
   call assert_equal('world', line)
 
   sleep 700m
+  redraw
   let line = join(map(range(1, 5), 'screenstring(1, v:val)'), '')
   call assert_equal('hello', line)