Mercurial > vim
diff src/testdir/test_gui.vim @ 11012:ae2de10e8398 v8.0.0395
patch 8.0.0395: testing the + register fails with Motif
commit https://github.com/vim/vim/commit/f8ab1b14fd972a093e0c12146dd3becd511eb519
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 1 18:30:34 2017 +0100
patch 8.0.0395: testing the + register fails with Motif
Problem: Testing the + register fails with Motif.
Solution: Also ignore the "failed to create input context" error in the
second gvim. Don't use msg() when it would result in a dialog.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Mar 2017 18:45:04 +0100 |
parents | b3601a8eb679 |
children | 4df1647531a6 |
line wrap: on
line diff
--- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -17,9 +17,6 @@ endfunc " Test for resetting "secure" flag after GUI has started. " Must be run first. func Test_1_set_secure() - " Ignore the "failed to create input context" error. - call test_ignore_error('E285') - set exrc secure gui -f call assert_equal(1, has('gui_running')) @@ -87,13 +84,16 @@ func Test_quoteplus() let test_response = 'Yes, I can.' let vim_exe = exepath(v:progpath) let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;' - \ . vim_exe . ' -f -g -u NONE -U NONE --noplugin -c ''%s''' - let cmd = 'call feedkeys("' + \ . vim_exe + \ . ' -f -g -u NONE -U NONE --noplugin --cmd ''%s'' -c ''%s''' + " Ignore the "failed to create input context" error. + let cmd1 = 'call test_ignore_error("E285")' + let cmd2 = 'call feedkeys("' \ . '\"+p' \ . ':s/' . test_call . '/' . test_response . '/\<CR>' \ . '\"+yis' \ . ':q!\<CR>", "tx")' - let run_vimtest = printf(testee, cmd) + let run_vimtest = printf(testee, cmd1, cmd2) " 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