diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-04 21:51:13 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-05 12:49:26 -0400 |
commit | 60bf49ab1c80f23c533eb961457524b973e395ff (patch) | |
tree | c6d08e1fb96cac2fc9712f92cba6f20ce0c4ea9b | |
parent | 1b13c744eabaa08a4be0d114c35415c87c4e41cc (diff) | |
download | rneovim-60bf49ab1c80f23c533eb961457524b973e395ff.tar.gz rneovim-60bf49ab1c80f23c533eb961457524b973e395ff.tar.bz2 rneovim-60bf49ab1c80f23c533eb961457524b973e395ff.zip |
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 vim/vim#8321)
https://github.com/vim/vim/commit/56cddb38790ba535919524d9d2f32dbec9f3f07a
-rw-r--r-- | src/nvim/testdir/test_popup.vim | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim index e28edeff27..027533e1ad 100644 --- a/src/nvim/testdir/test_popup.vim +++ b/src/nvim/testdir/test_popup.vim @@ -1079,7 +1079,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 @@ -1136,11 +1138,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') |