diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-27 20:24:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-27 20:24:14 +0100 |
commit | 37bb030cd9088ee66dc2d41c2d3602d1e5f4a7ef (patch) | |
tree | f6d6ea6093c25d3b3da5f0e3c6cb7864714cc1c2 /src/testdir/test_popup.vim | |
parent | 9207d1f523c2e2fb1c8749ec6f84ab5ecc2c62f4 (diff) |
patch 8.2.0462: previewwindow test fails on some systemsv8.2.0462
Problem: Previewwindow test fails on some systems. (James McCoy)
Solution: Wait a bit after sending the "o". (closes #5849)
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index fdc009f4e2..4ca35b2568 100644 --- 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") |