mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.0.0403: GUI tests may fail
Problem: GUI tests may fail. Solution: Ignore the E285 error better. (Kazunobu Kuriyama)
This commit is contained in:
parent
cf5fdf7d16
commit
24d7636e98
@ -85,15 +85,16 @@ func Test_quoteplus()
|
|||||||
let vim_exe = exepath(v:progpath)
|
let vim_exe = exepath(v:progpath)
|
||||||
let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;'
|
let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;'
|
||||||
\ . vim_exe
|
\ . vim_exe
|
||||||
\ . ' -f -g -u NONE -U NONE --noplugin --cmd ''%s'' -c ''%s'''
|
\ . ' -u NONE -U NONE --noplugin --not-a-term -c ''%s'''
|
||||||
" Ignore the "failed to create input context" error.
|
" Ignore the "failed to create input context" error.
|
||||||
let cmd1 = 'call test_ignore_error("E285")'
|
let cmd = 'call test_ignore_error("E285") | '
|
||||||
let cmd2 = 'call feedkeys("'
|
\ . 'gui -f | '
|
||||||
|
\ . 'call feedkeys("'
|
||||||
\ . '\"+p'
|
\ . '\"+p'
|
||||||
\ . ':s/' . test_call . '/' . test_response . '/\<CR>'
|
\ . ':s/' . test_call . '/' . test_response . '/\<CR>'
|
||||||
\ . '\"+yis'
|
\ . '\"+yis'
|
||||||
\ . ':q!\<CR>", "tx")'
|
\ . ':q!\<CR>", "tx")'
|
||||||
let run_vimtest = printf(testee, cmd1, cmd2)
|
let run_vimtest = printf(testee, cmd)
|
||||||
|
|
||||||
" Set the quoteplus register to test_call, and another gvim will launched.
|
" Set the quoteplus register to test_call, and another gvim will launched.
|
||||||
" Then, it first tries to paste the content of its own quotedplus register
|
" Then, it first tries to paste the content of its own quotedplus register
|
||||||
|
@ -15,7 +15,10 @@ func TearDown()
|
|||||||
call GUITearDownCommon()
|
call GUITearDownCommon()
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Make sure that the tests will be done with the GUI activated.
|
" Ignore the "failed to create input context" error.
|
||||||
|
call test_ignore_error('E285')
|
||||||
|
|
||||||
|
" Start the GUI now, in the foreground.
|
||||||
gui -f
|
gui -f
|
||||||
|
|
||||||
func Test_set_guiheadroom()
|
func Test_set_guiheadroom()
|
||||||
|
@ -764,6 +764,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 */
|
||||||
|
/**/
|
||||||
|
403,
|
||||||
/**/
|
/**/
|
||||||
402,
|
402,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user