patch 9.1.0057: MS-Windows: Key event test still fails
Problem: MS-Windows: Key event test still fails
Solution: Skip testing CTRL-C, since it causes an Interrupt
which causes a test failure (after 9.1.0053)
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -470,19 +470,19 @@ func Test_mswin_event_character_keys()
|
|||||||
|
|
||||||
" Test for <Ctrl-A> to <Ctrl-Z> keys
|
" Test for <Ctrl-A> to <Ctrl-Z> keys
|
||||||
" Expect the unicode characters 0x01 to 0x1A
|
" Expect the unicode characters 0x01 to 0x1A
|
||||||
" Note: May cause an Interrupt to be triggered for Ctrl-C
|
" Note: Skip C because it triggers an Interrupt (CTRL-C)
|
||||||
|
" which causes a test failure
|
||||||
for modkey in [s:VK.CONTROL, s:VK.LCONTROL, s:VK.RCONTROL]
|
for modkey in [s:VK.CONTROL, s:VK.LCONTROL, s:VK.RCONTROL]
|
||||||
for kc in range(65, 90)
|
for kc in range(65, 90)
|
||||||
try
|
if kc == 67
|
||||||
call SendKeyGroup([modkey, kc])
|
continue
|
||||||
let ch = Getcharstr()
|
endif
|
||||||
call assert_equal(nr2char(kc - 64), ch)
|
call SendKeyGroup([modkey, kc])
|
||||||
call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
|
let ch = Getcharstr()
|
||||||
let ch = Getcharstr()
|
call assert_equal(nr2char(kc - 64), ch)
|
||||||
call assert_equal(nr2char(kc - 64), ch)
|
call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
|
||||||
catch /^Vim:Interrupt$/
|
let ch = Getcharstr()
|
||||||
" ignore
|
call assert_equal(nr2char(kc - 64), ch)
|
||||||
endtry
|
|
||||||
endfor
|
endfor
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
|||||||
@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
57,
|
||||||
/**/
|
/**/
|
||||||
56,
|
56,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user