diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-05 23:03:51 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-06 00:18:02 -0500 |
commit | 83083dd47b0c2880e4e1401f1c751013c533d57f (patch) | |
tree | 1e3e8c3ee47b084e774c65f16950350afbd7a1cf | |
parent | 3c764aabb5d4be71a5ea0d50bf8dae0a7285677f (diff) | |
download | rneovim-83083dd47b0c2880e4e1401f1c751013c533d57f.tar.gz rneovim-83083dd47b0c2880e4e1401f1c751013c533d57f.tar.bz2 rneovim-83083dd47b0c2880e4e1401f1c751013c533d57f.zip |
vim-patch:8.1.1309: test for Normal highlight fails on MS-Windows GUI
Problem: Test for Normal highlight fails on MS-Windows GUI.
Solution: Skip the test for MS-Windows GUI.
https://github.com/vim/vim/commit/6b528fa062a5ac6bb5d8bd3abc26f32c65691d00
-rw-r--r-- | src/nvim/testdir/test_highlight.vim | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index b9aeff0907..a320e8edc8 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -592,9 +592,12 @@ func Test_cursorline_with_visualmode() call delete('Xtest_cursorline_with_visualmode') 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() - " This test must come before the Test_cursorline test, as it appears this - " defines the Normal highlighting group anyway. - let hlNormal = HighlightArgs('Normal') - call assert_match('hi Normal\s*clear', hlNormal) + " MS-Windows GUI sets the font + if !has('win32') || !has('gui_running') + let hlNormal = HighlightArgs('Normal') + call assert_match('hi Normal\s*clear', hlNormal) + endif endfunc |