diff options
Diffstat (limited to 'src/nvim/testdir/test_popup.vim')
-rw-r--r-- | src/nvim/testdir/test_popup.vim | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim index 0486ed83ad..3d1e3fa6db 100644 --- a/src/nvim/testdir/test_popup.vim +++ b/src/nvim/testdir/test_popup.vim @@ -864,15 +864,21 @@ func Test_popup_position() endfunc func Test_popup_command() - if !CanRunVimInTerminal() || !has('menu') - return - endif + CheckScreendump + CheckFeature menu - call writefile([ - \ 'one two three four five', - \ 'and one two Xthree four five', - \ 'one more two three four five', - \ ], 'Xtest') + menu Test.Foo Foo + call assert_fails('popup Test.Foo', 'E336:') + call assert_fails('popup Test.Foo.X', 'E327:') + call assert_fails('popup Foo', 'E337:') + unmenu Test.Foo + + let lines =<< trim END + one two three four five + and one two Xthree four five + one more two three four five + END + call writefile(lines, 'Xtest') let buf = RunVimInTerminal('Xtest', {}) call term_sendkeys(buf, ":source $VIMRUNTIME/menu.vim\<CR>") call term_sendkeys(buf, "/X\<CR>:popup PopUp\<CR>") |