Mercurial > vim
diff src/testdir/test_gui.vim @ 19932:2c4d9ca33769 v8.2.0522
patch 8.2.0522: several errors are not tested for
Commit: https://github.com/vim/vim/commit/ee4e0c1e9a81cb5d96e0060203a9033c2f28588e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 6 21:35:05 2020 +0200
patch 8.2.0522: several errors are not tested for
Problem: Several errors are not tested for.
Solution: Add tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5892)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Apr 2020 21:45:31 +0200 |
parents | 546bdeef35f1 |
children | 3d1de9093c01 |
line wrap: on
line diff
--- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -388,6 +388,11 @@ func Test_set_guifont() call assert_equal('Monospace 10', getfontname()) endif + if has('win32') + " Invalid font names are accepted in GTK GUI + call assert_fails('set guifont=xa1bc23d7f', 'E596:') + endif + if has('xfontset') let &guifontset = guifontset_saved endif @@ -402,6 +407,8 @@ func Test_set_guifontset() CheckFeature xfontset let skipped = '' + call assert_fails('set guifontset=*', 'E597:') + let ctype_saved = v:ctype " First, since XCreateFontSet(3) is very sensitive to locale, fonts must @@ -468,6 +475,7 @@ func Test_set_guifontset() endfunc func Test_set_guifontwide() + call assert_fails('set guifontwide=*', 'E533:') let skipped = '' if !g:x11_based_gui @@ -785,6 +793,7 @@ func Test_set_term() " It's enough to check the current value since setting 'term' to anything " other than builtin_gui makes no sense at all. call assert_equal('builtin_gui', &term) + call assert_fails('set term=xterm', 'E530:') endfunc func Test_windowid_variable()