comparison src/testdir/test_gui.vim @ 28858:7f1a48f095be v8.2.4952

patch 8.2.4952: GUI test will fail if color scheme changes Commit: https://github.com/vim/vim/commit/98feacedf9c03b8db79da03508a2c3c25dac3e53 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 14 12:34:43 2022 +0100 patch 8.2.4952: GUI test will fail if color scheme changes Problem: GUI test will fail if color scheme changes. Solution: Reduce the test for now.
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 May 2022 13:45:02 +0200
parents 26a2836923d6
children d5436dbdd082
comparison
equal deleted inserted replaced
28857:b1324e0d998a 28858:7f1a48f095be
46 call assert_equal(1, g:before_colors) 46 call assert_equal(1, g:before_colors)
47 call assert_equal(2, g:after_colors) 47 call assert_equal(2, g:after_colors)
48 call assert_equal("\ntorte", execute('colorscheme')) 48 call assert_equal("\ntorte", execute('colorscheme'))
49 49
50 let a = substitute(execute('hi Search'), "\n\\s\\+", ' ', 'g') 50 let a = substitute(execute('hi Search'), "\n\\s\\+", ' ', 'g')
51 call assert_match("\nSearch xxx term=reverse ctermfg=0 ctermbg=12 gui=bold guifg=Black guibg=Red", a) 51 " FIXME: temporarily check less while the colorscheme changes
52 " call assert_match("\nSearch xxx term=reverse cterm=reverse ctermfg=196 ctermbg=16 gui=reverse guifg=#ff0000 guibg=#000000", a)
53 call assert_match("\nSearch xxx term=reverse ", a)
52 54
53 call assert_fails('colorscheme does_not_exist', 'E185:') 55 call assert_fails('colorscheme does_not_exist', 'E185:')
54 56
55 exec 'colorscheme' colorscheme_saved 57 exec 'colorscheme' colorscheme_saved
56 augroup TestColors 58 augroup TestColors