1
0
forked from aniani/vim

patch 8.2.2937: popup test fails if rightleft feature not enabled

Problem:    Popup test fails if rightleft feature not enabled.
Solution:   Check that the rightleft feature is available. (Dominique Pellé,
            closes #8321)
This commit is contained in:
Dominique Pelle
2021-06-04 21:09:55 +02:00
committed by Bram Moolenaar
parent 5fa9b24440
commit 56cddb3879
2 changed files with 11 additions and 5 deletions

View File

@@ -1147,7 +1147,9 @@ endfunc
" Test for the popup menu with the 'rightleft' option set
func Test_pum_rightleft()
CheckFeature rightleft
CheckScreendump
let lines =<< trim END
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
vim
@@ -1204,11 +1206,13 @@ func Test_pum_scrollbar()
call term_sendkeys(buf, "\<C-E>\<Esc>dd")
call term_wait(buf)
call term_sendkeys(buf, ":set rightleft\<CR>")
call term_wait(buf)
call term_sendkeys(buf, "Go\<C-P>\<C-P>\<C-P>")
call term_wait(buf)
call VerifyScreenDump(buf, 'Test_pum_scrollbar_02', {'rows': 7})
if has('rightleft')
call term_sendkeys(buf, ":set rightleft\<CR>")
call term_wait(buf)
call term_sendkeys(buf, "Go\<C-P>\<C-P>\<C-P>")
call term_wait(buf)
call VerifyScreenDump(buf, 'Test_pum_scrollbar_02', {'rows': 7})
endif
call StopVimInTerminal(buf)
call delete('Xtest1')