mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
vim-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 vim/vim#5849)37bb030cd9
Cherry-pick Test_popup_and_previewwindow_dump() changes from patches 8.1.1585, 8.1.2373. N/A patches for version.c: vim-patch:8.2.0242: preview popup window test fails with long directory name Problem: Preview popup window test fails with long directory name. (Jakub Kądziołka) Solution: Use "silent cd". (closes vim/vim#5615)799439a5d8
vim-patch:8.2.2042: build failure with +profile but without +reltime Problem: Build failure with +profile but without +reltime. Solution: Adjust #ifdef. (Christian Brabandt, closes vim/vim#7361)813196784a
vim-patch:8.2.2043: GTK3: white border around text stands out Problem: GTK3: white border around text stands out. Solution: Use current theme color. (closes vim/vim#7357, issue vim/vim#349)ff94bd9e47
vim-patch:8.2.2047: Amiga: FEAT_ARP defined when it should not Problem: Amiga: FEAT_ARP defined when it should not. Solution: Adjust #ifdef. (Ola Söder, closes vim/vim#7370)36fe7b287e
vim-patch:8.2.2048: Amiga: obsolete code Problem: Amiga: obsolete code. Solution: Remove the unused lines. (Ola Söder, closes vim/vim#7373)3a3b691042
vim-patch:8.2.2049: Amiga: obsolete function Problem: Amiga: obsolete function. Solution: Remove the function. (Ola Söder, closes vim/vim#7374)d653293c80
vim-patch:8.2.2054: Amiga: FEAT_ARP defined when it should not Problem: Amiga: FEAT_ARP defined when it should not. Solution: Adjust "||" to "&&" in #ifdef. (Ola Söder, closes vim/vim#7375)d49a35a1c3
This commit is contained in:
@@ -735,20 +735,25 @@ func Test_popup_and_preview_autocommand()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_popup_and_previewwindow_dump()
|
func Test_popup_and_previewwindow_dump()
|
||||||
if !CanRunVimInTerminal()
|
CheckScreendump
|
||||||
return
|
CheckFeature quickfix
|
||||||
endif
|
|
||||||
call writefile([
|
let lines =<< trim END
|
||||||
\ 'set previewheight=9',
|
set previewheight=9
|
||||||
\ 'silent! pedit',
|
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>"',
|
exec "norm! G\<C-E>\<C-E>"
|
||||||
\ ], 'Xscript')
|
END
|
||||||
|
call writefile(lines, 'Xscript')
|
||||||
let buf = RunVimInTerminal('-S Xscript', {})
|
let buf = RunVimInTerminal('-S Xscript', {})
|
||||||
|
|
||||||
|
" wait for the script to finish
|
||||||
|
call term_wait(buf)
|
||||||
|
|
||||||
" Test that popup and previewwindow do not overlap.
|
" Test that popup and previewwindow do not overlap.
|
||||||
call term_sendkeys(buf, "o\<C-X>\<C-N>")
|
call term_sendkeys(buf, "o")
|
||||||
sleep 100m
|
call term_wait(buf, 100)
|
||||||
|
call term_sendkeys(buf, "\<C-X>\<C-N>")
|
||||||
call VerifyScreenDump(buf, 'Test_popup_and_previewwindow_01', {})
|
call VerifyScreenDump(buf, 'Test_popup_and_previewwindow_01', {})
|
||||||
|
|
||||||
call term_sendkeys(buf, "\<Esc>u")
|
call term_sendkeys(buf, "\<Esc>u")
|
||||||
|
Reference in New Issue
Block a user