Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
19810:6fcd4e5daa05 | 19811:d1d840cfd135 |
---|---|
741 CheckFeature quickfix | 741 CheckFeature quickfix |
742 | 742 |
743 let lines =<< trim END | 743 let lines =<< trim END |
744 set previewheight=9 | 744 set previewheight=9 |
745 silent! pedit | 745 silent! pedit |
746 call setline(1, map(repeat(["ab"], 10), "v:val. v:key")) | 746 call setline(1, map(repeat(["ab"], 10), "v:val .. v:key")) |
747 exec "norm! G\<C-E>\<C-E>" | 747 exec "norm! G\<C-E>\<C-E>" |
748 END | 748 END |
749 call writefile(lines, 'Xscript') | 749 call writefile(lines, 'Xscript') |
750 let buf = RunVimInTerminal('-S Xscript', {}) | 750 let buf = RunVimInTerminal('-S Xscript', {}) |
751 | 751 |
752 " wait for the script to finish | |
753 call term_wait(buf) | |
754 | |
752 " Test that popup and previewwindow do not overlap. | 755 " Test that popup and previewwindow do not overlap. |
753 call term_sendkeys(buf, "o\<C-X>\<C-N>") | 756 call term_sendkeys(buf, "o") |
754 sleep 100m | 757 call term_wait(buf, 100) |
758 call term_sendkeys(buf, "\<C-X>\<C-N>") | |
755 call VerifyScreenDump(buf, 'Test_popup_and_previewwindow_01', {}) | 759 call VerifyScreenDump(buf, 'Test_popup_and_previewwindow_01', {}) |
756 | 760 |
757 call term_sendkeys(buf, "\<Esc>u") | 761 call term_sendkeys(buf, "\<Esc>u") |
758 call StopVimInTerminal(buf) | 762 call StopVimInTerminal(buf) |
759 call delete('Xscript') | 763 call delete('Xscript') |