diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-07 21:40:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-07 21:40:48 +0100 |
commit | e2a3f36bf22bfa00343c6a7aaef5337a9dfc0993 (patch) | |
tree | 02b65a9fca2d6b2db4c7f5218c7ca0615825bc69 /src/testdir | |
parent | 5f1920ada24904a115232e01f28fc8a6cdd623af (diff) |
patch 8.1.2410: MS-Windows: test_iminsert fails without IME supportv8.1.2410
Problem: MS-Windows: test_iminsert fails without IME support.
Solution: Skip the test when imgetstatus() doesn't work.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_iminsert.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testdir/test_iminsert.vim b/src/testdir/test_iminsert.vim index 9316ff63af..fb2ef053bd 100644 --- a/src/testdir/test_iminsert.vim +++ b/src/testdir/test_iminsert.vim @@ -1,4 +1,5 @@ source view_util.vim +source check.vim let s:imactivatefunc_called = 0 let s:imstatusfunc_called = 0 @@ -31,7 +32,12 @@ func Test_iminsert2() call assert_equal(expected, s:imstatusfunc_called) endfunc -func Test_imgetstatus() +func Test_getimstatus() + if has('win32') + CheckFeature multi_byte_ime + elseif !has('gui_mac') + CheckFeature xim + endif if has('gui_running') if !has('win32') throw 'Skipped: running in the GUI, only works on MS-Windows' |