]> granicus.if.org Git - vim/commitdiff
patch 8.2.2375: test for RGB color skipped in the terminal v8.2.2375
authorBram Moolenaar <Bram@vim.org>
Tue, 19 Jan 2021 16:22:58 +0000 (17:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 19 Jan 2021 16:22:58 +0000 (17:22 +0100)
Problem:    Test for RGB color skipped in the terminal.
Solution:   Run the GUI if possible.

src/testdir/test_highlight.vim
src/version.c

index 8bd03e2da12aad646b9c1cfe73b893e5e5844742..a4c7a725914996c46cdf3cc83a3a2cab0112ffa8 100644 (file)
@@ -781,8 +781,9 @@ func Test_highlight_User()
 endfunc
 
 " Test for using RGB color values in a highlight group
-func Test_highlight_RGB_color()
-  CheckGui
+func Test_xxlast_highlight_RGB_color()
+  CheckCanRunGui
+  gui -f
   hi MySearch guifg=#110000 guibg=#001100 guisp=#000011
   call assert_equal('#110000', synIDattr(synIDtrans(hlID('MySearch')), 'fg#'))
   call assert_equal('#001100', synIDattr(synIDtrans(hlID('MySearch')), 'bg#'))
index 98f120b2e2490f8d52b9bbca7e9963386fd156ba..452fa2d22f996a6ce1f6ec4d21bd021dd30255b4 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2375,
 /**/
     2374,
 /**/