Patch 8.1.0705
Problem:    :colorscheme isn't tested enough
Solution:   Improve test coverage of :colorscheme. (Dominique Pelle, closes
            #3777)  Remove unnecessary sleep.
Files:      src/testdir/test_gui.vim


*** ../vim-8.1.0704/src/testdir/test_gui.vim    2018-09-14 21:27:02.775741320 
+0200
--- src/testdir/test_gui.vim    2019-01-08 21:03:52.214110621 +0100
***************
*** 42,51 ****
  
    colorscheme torte
    redraw!
-   sleep 200m
    call assert_equal('dark', &background)
    call assert_equal(1, g:before_colors)
    call assert_equal(2, g:after_colors)
  
    exec 'colorscheme' colorscheme_saved
    augroup TestColors
--- 42,56 ----
  
    colorscheme torte
    redraw!
    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
*** ../vim-8.1.0704/src/version.c       2019-01-08 20:29:29.339909743 +0100
--- src/version.c       2019-01-08 21:05:08.905336740 +0100
***************
*** 801,802 ****
--- 801,804 ----
  {   /* Add new patch number below this line */
+ /**/
+     705,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
132. You come back and check this list every half-hour.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui