diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-06 19:09:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-06 19:09:48 -0400 |
| commit | a260d5def363ca30f0473365ea514f2dedd0d0ba (patch) | |
| tree | 957e486c12d36f55c7958a08b79dd647b505b3df /src/nvim/testdir/test_highlight.vim | |
| parent | 7b8935398587992da3233bcd7edd79013889fea4 (diff) | |
| parent | 7454b11ec115da973da36c36a76a5bf81967a5ff (diff) | |
| download | rneovim-a260d5def363ca30f0473365ea514f2dedd0d0ba.tar.gz rneovim-a260d5def363ca30f0473365ea514f2dedd0d0ba.tar.bz2 rneovim-a260d5def363ca30f0473365ea514f2dedd0d0ba.zip | |
Merge pull request #13060 from janlazo/vim-8.1.2310
vim-patch:8.1.{1619,1771,1624,2274,2310,2401},8.2.{554,1806}
Diffstat (limited to 'src/nvim/testdir/test_highlight.vim')
| -rw-r--r-- | src/nvim/testdir/test_highlight.vim | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index 6aa187b17e..00e42733a7 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -596,9 +596,17 @@ endfunc " This test must come before the Test_cursorline test, as it appears this " defines the Normal highlighting group anyway. func Test_1_highlight_Normalgroup_exists() - " MS-Windows GUI sets the font - if !has('win32') || !has('gui_running') - let hlNormal = HighlightArgs('Normal') + let hlNormal = HighlightArgs('Normal') + if !has('gui_running') call assert_match('hi Normal\s*clear', hlNormal) + elseif has('gui_gtk2') || has('gui_gnome') || has('gui_gtk3') + " expect is DEFAULT_FONT of gui_gtk_x11.c + call assert_match('hi Normal\s*font=Monospace 10', hlNormal) + elseif has('gui_motif') || has('gui_athena') + " expect is DEFAULT_FONT of gui_x11.c + call assert_match('hi Normal\s*font=7x13', hlNormal) + elseif has('win32') + " expect any font + call assert_match('hi Normal\s*font=.*', hlNormal) endif endfunc |