diff src/testdir/test_highlight.vim @ 19273:a4b65930a0dc v8.2.0195

patch 8.2.0195: some tests fail when run in the GUI Commit: https://github.com/vim/vim/commit/3180fe6c6dc0728d21c6318b957022b029c234f0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 2 13:47:06 2020 +0100 patch 8.2.0195: some tests fail when run in the GUI Problem: Some tests fail when run in the GUI. Solution: Make sure the window width is enough. In the GUI run terminal Vim in the terminal, if possible.
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Feb 2020 14:00:05 +0100
parents 04e1a025ef00
children 2c4d9ca33769
line wrap: on
line diff
--- a/src/testdir/test_highlight.vim
+++ b/src/testdir/test_highlight.vim
@@ -594,6 +594,8 @@ endfunc
 
 func Test_wincolor()
   CheckScreendump
+  " make sure the width is enough for the test
+  set columns=80
 
   let lines =<< trim END
 	set cursorline cursorcolumn rnu
@@ -686,7 +688,8 @@ func Test_1_highlight_Normalgroup_exists
   endif
 endfunc
 
-function Test_no_space_before_xxx()
+" Do this test last, sometimes restoring the columns doesn't work
+function Test_z_no_space_before_xxx()
   let l:org_columns = &columns
   set columns=17
   let l:hi_StatusLineTermNC = join(split(execute('hi StatusLineTermNC')))