Mercurial > vim
diff src/testdir/test_popup.vim @ 19811:d1d840cfd135 v8.2.0462
patch 8.2.0462: previewwindow test fails on some systems
Commit: https://github.com/vim/vim/commit/37bb030cd9088ee66dc2d41c2d3602d1e5f4a7ef
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 27 20:24:14 2020 +0100
patch 8.2.0462: previewwindow test fails on some systems
Problem: Previewwindow test fails on some systems. (James McCoy)
Solution: Wait a bit after sending the "o". (closes https://github.com/vim/vim/issues/5849)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Mar 2020 20:30:04 +0100 |
parents | da791e5c0139 |
children | c087099e9163 |
line wrap: on
line diff
--- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -743,15 +743,19 @@ func Test_popup_and_previewwindow_dump() let lines =<< trim END set previewheight=9 silent! pedit - call setline(1, map(repeat(["ab"], 10), "v:val. v:key")) + call setline(1, map(repeat(["ab"], 10), "v:val .. v:key")) exec "norm! G\<C-E>\<C-E>" END call writefile(lines, 'Xscript') let buf = RunVimInTerminal('-S Xscript', {}) + " wait for the script to finish + call term_wait(buf) + " Test that popup and previewwindow do not overlap. - call term_sendkeys(buf, "o\<C-X>\<C-N>") - sleep 100m + call term_sendkeys(buf, "o") + call term_wait(buf, 100) + call term_sendkeys(buf, "\<C-X>\<C-N>") call VerifyScreenDump(buf, 'Test_popup_and_previewwindow_01', {}) call term_sendkeys(buf, "\<Esc>u")