Mercurial > vim
comparison src/testdir/test_menu.vim @ 25850:6f615b2fdc66 v8.2.3459
patch 8.2.3459: Vim9: need more tests for empty string arguments
Commit: https://github.com/vim/vim/commit/51491adfa86fd66a857cd7ec50d0b57dbdf3da59
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Sep 30 19:00:00 2021 +0100
patch 8.2.3459: Vim9: need more tests for empty string arguments
Problem: Vim9: need more tests for empty string arguments.
Solution: Add more tests. Also use empty argument with menu_info() to get
the top-level menu names. (Yegappan Lakshmanan, closes #8925)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 30 Sep 2021 20:15:04 +0200 |
parents | b545334ae654 |
children | a538982f74ea |
comparison
equal
deleted
inserted
replaced
25849:ecbd01ddf78d | 25850:6f615b2fdc66 |
---|---|
405 menu ]Test.menu :menu<CR> | 405 menu ]Test.menu :menu<CR> |
406 call assert_equal(#{name: ']Test', display: ']Test', priority: 500, | 406 call assert_equal(#{name: ']Test', display: ']Test', priority: 500, |
407 \ shortcut: '', modes: ' ', submenus: ['menu']}, | 407 \ shortcut: '', modes: ' ', submenus: ['menu']}, |
408 \ menu_info(']Test')) | 408 \ menu_info(']Test')) |
409 unmenu ]Test | 409 unmenu ]Test |
410 | |
411 " Test for getting all the top-level menu names | |
412 call assert_notequal(menu_info('').submenus, []) | |
410 endfunc | 413 endfunc |
411 | 414 |
412 " Test for <special> keyword in a menu with 'cpo' containing '<' | 415 " Test for <special> keyword in a menu with 'cpo' containing '<' |
413 func Test_menu_special() | 416 func Test_menu_special() |
414 new | 417 new |