comparison src/testdir/test_highlight.vim @ 21765:08940efa6b4e v8.2.1432

patch 8.2.1432: various inconsistencies in test files Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 18:50:36 2020 +0200 patch 8.2.1432: various inconsistencies in test files Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 19:00:08 +0200
parents f6eb0c468ae4
children 47ebfc274e3f
comparison
equal deleted inserted replaced
21764:476b6faad407 21765:08940efa6b4e
205 call CloseWindow() 205 call CloseWindow()
206 exe hiCursorLine 206 exe hiCursorLine
207 endfunc 207 endfunc
208 208
209 func Test_highlight_eol_with_cursorline_rightleft() 209 func Test_highlight_eol_with_cursorline_rightleft()
210 if !has('rightleft') 210 CheckFeature rightleft
211 return
212 endif
213 211
214 let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine() 212 let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
215 213
216 call NewWindow('topleft 5', 10) 214 call NewWindow('topleft 5', 10)
217 setlocal rightleft 215 setlocal rightleft
356 call CloseWindow() 354 call CloseWindow()
357 exe hiCursorLine 355 exe hiCursorLine
358 endfunc 356 endfunc
359 357
360 func Test_highlight_eol_with_cursorline_sign() 358 func Test_highlight_eol_with_cursorline_sign()
361 if !has('signs') 359 CheckFeature signs
362 return
363 endif
364 360
365 let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine() 361 let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
366 362
367 call NewWindow('topleft 5', 10) 363 call NewWindow('topleft 5', 10)
368 call setline(1, 'abcd') 364 call setline(1, 'abcd')
416 call CloseWindow() 412 call CloseWindow()
417 exe hiCursorLine 413 exe hiCursorLine
418 endfunc 414 endfunc
419 415
420 func Test_highlight_eol_with_cursorline_breakindent() 416 func Test_highlight_eol_with_cursorline_breakindent()
421 if !has('linebreak') 417 CheckFeature linebreak
422 return
423 endif
424 418
425 let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine() 419 let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
426 420
427 call NewWindow('topleft 5', 10) 421 call NewWindow('topleft 5', 10)
428 set showbreak=xxx 422 set showbreak=xxx
514 bwipe! 508 bwipe!
515 diffoff 509 diffoff
516 endfunc 510 endfunc
517 511
518 func Test_termguicolors() 512 func Test_termguicolors()
519 if !exists('+termguicolors') 513 CheckOption termguicolors
520 return
521 endif
522 if has('vtp') && !has('vcon') && !has('gui_running') 514 if has('vtp') && !has('vcon') && !has('gui_running')
523 " Win32: 'guicolors' doesn't work without virtual console. 515 " Win32: 'guicolors' doesn't work without virtual console.
524 call assert_fails('set termguicolors', 'E954:') 516 call assert_fails('set termguicolors', 'E954:')
525 return 517 return
526 endif 518 endif