mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0866: no test for what patch 8.2.2207 fixes
Problem: No test for what patch 8.2.2207 fixes. Solution: Add a test case. (closes #11531)
This commit is contained in:
@@ -862,7 +862,6 @@ func Test_popup_position()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_popup_command()
|
func Test_popup_command()
|
||||||
CheckScreendump
|
|
||||||
CheckFeature menu
|
CheckFeature menu
|
||||||
|
|
||||||
menu Test.Foo Foo
|
menu Test.Foo Foo
|
||||||
@@ -870,13 +869,18 @@ func Test_popup_command()
|
|||||||
call assert_fails('popup Test.Foo.X', 'E327:')
|
call assert_fails('popup Test.Foo.X', 'E327:')
|
||||||
call assert_fails('popup Foo', 'E337:')
|
call assert_fails('popup Foo', 'E337:')
|
||||||
unmenu Test.Foo
|
unmenu Test.Foo
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func Test_popup_command_dump()
|
||||||
|
CheckFeature menu
|
||||||
|
CheckScreendump
|
||||||
|
|
||||||
let script =<< trim END
|
let script =<< trim END
|
||||||
func StartTimer()
|
func StartTimer()
|
||||||
call timer_start(100, {-> ChangeMenu()})
|
call timer_start(100, {-> ChangeMenu()})
|
||||||
endfunc
|
endfunc
|
||||||
func ChangeMenu()
|
func ChangeMenu()
|
||||||
nunmenu PopUp.&Paste
|
aunmenu PopUp.&Paste
|
||||||
nnoremenu 1.40 PopUp.&Paste :echomsg "pasted"<CR>
|
nnoremenu 1.40 PopUp.&Paste :echomsg "pasted"<CR>
|
||||||
echomsg 'changed'
|
echomsg 'changed'
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
866,
|
||||||
/**/
|
/**/
|
||||||
865,
|
865,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user