comparison src/testdir/test_gui.vim @ 11028:4df1647531a6 v8.0.0403

patch 8.0.0403: GUI tests may fail commit https://github.com/vim/vim/commit/24d7636e98b33ec6873c51fc72f6bf4b10188d8b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 4 13:32:10 2017 +0100 patch 8.0.0403: GUI tests may fail Problem: GUI tests may fail. Solution: Ignore the E285 error better. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Mar 2017 13:45:04 +0100
parents ae2de10e8398
children 622ed5a4925f
comparison
equal deleted inserted replaced
11027:ad18cd462fdd 11028:4df1647531a6
83 let test_call = 'Can you hear me?' 83 let test_call = 'Can you hear me?'
84 let test_response = 'Yes, I can.' 84 let test_response = 'Yes, I can.'
85 let vim_exe = exepath(v:progpath) 85 let vim_exe = exepath(v:progpath)
86 let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;' 86 let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;'
87 \ . vim_exe 87 \ . vim_exe
88 \ . ' -f -g -u NONE -U NONE --noplugin --cmd ''%s'' -c ''%s''' 88 \ . ' -u NONE -U NONE --noplugin --not-a-term -c ''%s'''
89 " Ignore the "failed to create input context" error. 89 " Ignore the "failed to create input context" error.
90 let cmd1 = 'call test_ignore_error("E285")' 90 let cmd = 'call test_ignore_error("E285") | '
91 let cmd2 = 'call feedkeys("' 91 \ . 'gui -f | '
92 \ . 'call feedkeys("'
92 \ . '\"+p' 93 \ . '\"+p'
93 \ . ':s/' . test_call . '/' . test_response . '/\<CR>' 94 \ . ':s/' . test_call . '/' . test_response . '/\<CR>'
94 \ . '\"+yis' 95 \ . '\"+yis'
95 \ . ':q!\<CR>", "tx")' 96 \ . ':q!\<CR>", "tx")'
96 let run_vimtest = printf(testee, cmd1, cmd2) 97 let run_vimtest = printf(testee, cmd)
97 98
98 " Set the quoteplus register to test_call, and another gvim will launched. 99 " Set the quoteplus register to test_call, and another gvim will launched.
99 " Then, it first tries to paste the content of its own quotedplus register 100 " Then, it first tries to paste the content of its own quotedplus register
100 " onto it. Second, it tries to substitute test_responce for the pasted 101 " onto it. Second, it tries to substitute test_responce for the pasted
101 " sentence. If the sentence is identical to test_call, the substitution 102 " sentence. If the sentence is identical to test_call, the substitution