diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-05 10:52:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-05 10:52:30 +0100 |
commit | 206fce307b265f7f6c6290b623a80c1d846dd131 (patch) | |
tree | 10e260f84f3d043396ce965623c10577740db0c4 /src/testdir/test_menu.vim | |
parent | 3d3f6ac09859905405f35f50b2b7c57ccf40fb47 (diff) |
patch 9.0.0141: "delmenu" does not remove autocmmandsv9.0.0141
Problem: "delmenu" does not remove autocmmands. Running menu test function
alone fails.
Solution: Delete autocommands Make sure there is at least one menu.
(closes #10848)
Diffstat (limited to 'src/testdir/test_menu.vim')
-rw-r--r-- | src/testdir/test_menu.vim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim index df717cc8a7..1602e93de6 100644 --- a/src/testdir/test_menu.vim +++ b/src/testdir/test_menu.vim @@ -160,9 +160,6 @@ endfunc " Test for menu item completion in command line func Test_menu_expand() - " Make sure we don't have stale menu items like Buffers menu. - source $VIMRUNTIME/delmenu.vim - " Create the menu itmes for test menu Dummy.Nothing lll for i in range(1, 4) @@ -369,6 +366,10 @@ func Test_menu_info() \ display: 'tlnoremenu', modes: 'tl', enabled: v:true, silent: v:false, \ rhs: ':tlnoremenu<CR>', noremenu: v:true, script: v:false}, \ menu_info('Test.tlnoremenu', 'tl')) + + " Test for getting all the top-level menu names + call assert_notequal(menu_info('').submenus, []) + aunmenu Test tlunmenu Test call assert_equal({}, menu_info('Test')) @@ -407,9 +408,6 @@ func Test_menu_info() \ shortcut: '', modes: ' ', submenus: ['menu']}, \ menu_info(']Test')) unmenu ]Test - - " Test for getting all the top-level menu names - call assert_notequal(menu_info('').submenus, []) endfunc " Test for <special> keyword in a menu with 'cpo' containing '<' |