Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 17210:175941dcc96b v8.1.1604
patch 8.1.1604: popup window scroll test is flaky
commit https://github.com/vim/vim/commit/13b47c37a650ab6045680a9e5513ef6ad71ee93f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 28 21:55:48 2019 +0200
patch 8.1.1604: popup window scroll test is flaky
Problem: Popup window scroll test is flaky.
Solution: Add a delay between scroll events.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Jun 2019 22:00:06 +0200 |
parents | 1a6ccc91ed46 |
children | 11f3cf51d43b |
comparison
equal
deleted
inserted
replaced
17209:755469df71bc | 17210:175941dcc96b |
---|---|
1457 | 1457 |
1458 call term_sendkeys(buf, ":call ScrollDown()\<CR>") | 1458 call term_sendkeys(buf, ":call ScrollDown()\<CR>") |
1459 call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {}) | 1459 call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {}) |
1460 | 1460 |
1461 call term_sendkeys(buf, ":call ScrollDown()\<CR>") | 1461 call term_sendkeys(buf, ":call ScrollDown()\<CR>") |
1462 " wait a bit, otherwise it fails sometimes (double click recognized?) | |
1463 sleep 100m | |
1462 call term_sendkeys(buf, ":call ScrollDown()\<CR>") | 1464 call term_sendkeys(buf, ":call ScrollDown()\<CR>") |
1463 call VerifyScreenDump(buf, 'Test_popupwin_scroll_7', {}) | 1465 call VerifyScreenDump(buf, 'Test_popupwin_scroll_7', {}) |
1464 | 1466 |
1465 " clean up | 1467 " clean up |
1466 call StopVimInTerminal(buf) | 1468 call StopVimInTerminal(buf) |