]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1604: popup window scroll test is flaky v8.1.1604
authorBram Moolenaar <Bram@vim.org>
Fri, 28 Jun 2019 19:55:48 +0000 (21:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 28 Jun 2019 19:55:48 +0000 (21:55 +0200)
Problem:    Popup window scroll test is flaky.
Solution:   Add a delay between scroll events.

src/testdir/test_popupwin.vim
src/version.c

index e80621b37f8687cfb4a8f9ef9b2c41256a3dc90a..1cb0734ec91926bb337caa755da824262cf0edfe 100644 (file)
@@ -1459,6 +1459,8 @@ func Test_popup_scrollbar()
   call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {})
 
   call term_sendkeys(buf, ":call ScrollDown()\<CR>")
+  " wait a bit, otherwise it fails sometimes (double click recognized?)
+  sleep 100m
   call term_sendkeys(buf, ":call ScrollDown()\<CR>")
   call VerifyScreenDump(buf, 'Test_popupwin_scroll_7', {})
 
index 26a9bf583da00710186ba37e702c9736bf19c954..9c29b46d8ec5a0c799f2fff45fe79823a2795dc1 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1604,
 /**/
     1603,
 /**/