summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-08 21:05:51 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-08 21:05:51 +0100
commit6d4470b0e9aac76ae43be27a28447ea29767d77f (patch)
tree191321724fc4e60ffc27aa34a06c4bc1554bd504
parentf62fc316a212160d1c58be88f30efd11eb595493 (diff)
downloadvim-git-6d4470b0e9aac76ae43be27a28447ea29767d77f.tar.gz
patch 8.1.0705: :colorscheme isn't tested enoughv8.1.0705
Problem: :colorscheme isn't tested enough Solution: Improve test coverage of :colorscheme. (Dominique Pelle, closes #3777) Remove unnecessary sleep.
-rw-r--r--src/testdir/test_gui.vim7
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim
index 0775b178f..7874fffa0 100644
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -42,10 +42,15 @@ func Test_colorscheme()
colorscheme torte
redraw!
- sleep 200m
call assert_equal('dark', &background)
call assert_equal(1, g:before_colors)
call assert_equal(2, g:after_colors)
+ 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)
+
+ call assert_fails('colorscheme does_not_exist', 'E185:')
exec 'colorscheme' colorscheme_saved
augroup TestColors
diff --git a/src/version.c b/src/version.c
index 95f385902..e772d05b2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -800,6 +800,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 705,
+/**/
704,
/**/
703,