comparison 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
comparison
equal deleted inserted replaced
19272:4bebe4172547 19273:a4b65930a0dc
592 call delete('Xtest_cursorline_with_visualmode') 592 call delete('Xtest_cursorline_with_visualmode')
593 endfunc 593 endfunc
594 594
595 func Test_wincolor() 595 func Test_wincolor()
596 CheckScreendump 596 CheckScreendump
597 " make sure the width is enough for the test
598 set columns=80
597 599
598 let lines =<< trim END 600 let lines =<< trim END
599 set cursorline cursorcolumn rnu 601 set cursorline cursorcolumn rnu
600 call setline(1, ["","1111111111","22222222222","3 here 3","","the cat is out of the bag"]) 602 call setline(1, ["","1111111111","22222222222","3 here 3","","the cat is out of the bag"])
601 set wincolor=Pmenu 603 set wincolor=Pmenu
684 " expect any font 686 " expect any font
685 call assert_match('hi Normal\s*font=.*', hlNormal) 687 call assert_match('hi Normal\s*font=.*', hlNormal)
686 endif 688 endif
687 endfunc 689 endfunc
688 690
689 function Test_no_space_before_xxx() 691 " Do this test last, sometimes restoring the columns doesn't work
692 function Test_z_no_space_before_xxx()
690 let l:org_columns = &columns 693 let l:org_columns = &columns
691 set columns=17 694 set columns=17
692 let l:hi_StatusLineTermNC = join(split(execute('hi StatusLineTermNC'))) 695 let l:hi_StatusLineTermNC = join(split(execute('hi StatusLineTermNC')))
693 call assert_match('StatusLineTermNC xxx', l:hi_StatusLineTermNC) 696 call assert_match('StatusLineTermNC xxx', l:hi_StatusLineTermNC)
694 let &columns = l:org_columns 697 let &columns = l:org_columns