Mercurial > vim
changeset 24798:a84ed6d4aa9f v8.2.2937
patch 8.2.2937: popup test fails if rightleft feature not enabled
Commit: https://github.com/vim/vim/commit/56cddb38790ba535919524d9d2f32dbec9f3f07a
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Fri Jun 4 21:09:55 2021 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Jun 2021 21:15:05 +0200 |
parents | d76650e23588 |
children | 7aa2abb13864 |
files | src/testdir/test_popup.vim src/version.c |
diffstat | 2 files changed, 11 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -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')