Skip to content

Commit

Permalink
patch 8.2.4952: GUI test will fail if color scheme changes
Browse files Browse the repository at this point in the history
Problem:    GUI test will fail if color scheme changes.
Solution:   Reduce the test for now.
  • Loading branch information
brammool committed May 14, 2022
1 parent de5cf28 commit 98feace
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/testdir/test_gui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ func Test_colorscheme()
call assert_equal("\ntorte", execute('colorscheme'))

let a = substitute(execute('hi Search'), "\n\\s\\+", ' ', 'g')
call assert_match("\nSearch xxx term=reverse ctermfg=0 ctermbg=12 gui=bold guifg=Black guibg=Red", a)
" FIXME: temporarily check less while the colorscheme changes
" call assert_match("\nSearch xxx term=reverse cterm=reverse ctermfg=196 ctermbg=16 gui=reverse guifg=#ff0000 guibg=#000000", a)
call assert_match("\nSearch xxx term=reverse ", a)

call assert_fails('colorscheme does_not_exist', 'E185:')

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4952,
/**/
4951,
/**/
Expand Down

0 comments on commit 98feace

Please sign in to comment.