Mercurial > vim
comparison src/testdir/test_display.vim @ 21897:e0af4660dfc7 v8.2.1498
patch 8.2.1498: on slow systems tests can be flaky
Commit: https://github.com/vim/vim/commit/733d259a83bfdd3e1670cc1665e1bd56501799df
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 20 18:59:06 2020 +0200
patch 8.2.1498: on slow systems tests can be flaky
Problem: On slow systems tests can be flaky.
Solution: Use TermWait() instead of term-wait(). (Yegappan Lakshmanan,
closes #6756)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Aug 2020 19:00:03 +0200 |
parents | 7fb29e719d79 |
children | 4549133c1e77 |
comparison
equal
deleted
inserted
replaced
21896:4f7b50471a6a | 21897:e0af4660dfc7 |
---|---|
248 func Test_display_scroll_at_topline() | 248 func Test_display_scroll_at_topline() |
249 CheckScreendump | 249 CheckScreendump |
250 | 250 |
251 let buf = RunVimInTerminal('', #{cols: 20}) | 251 let buf = RunVimInTerminal('', #{cols: 20}) |
252 call term_sendkeys(buf, ":call setline(1, repeat('a', 21))\<CR>") | 252 call term_sendkeys(buf, ":call setline(1, repeat('a', 21))\<CR>") |
253 call term_wait(buf) | 253 call TermWait(buf) |
254 call term_sendkeys(buf, "O\<Esc>") | 254 call term_sendkeys(buf, "O\<Esc>") |
255 call VerifyScreenDump(buf, 'Test_display_scroll_at_topline', #{rows: 4}) | 255 call VerifyScreenDump(buf, 'Test_display_scroll_at_topline', #{rows: 4}) |
256 | 256 |
257 call StopVimInTerminal(buf) | 257 call StopVimInTerminal(buf) |
258 endfunc | 258 endfunc |