comparison src/testdir/test_highlight.vim @ 17657:0da9bc55c31a v8.1.1826

patch 8.1.1826: tests use hand coded feature and option checks commit https://github.com/vim/vim/commit/8c5a278fc508da6dfe50e69b6ee734451aa4eafb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 7 23:07:07 2019 +0200 patch 8.1.1826: tests use hand coded feature and option checks Problem: Tests use hand coded feature and option checks. Solution: Use the commands from check.vim in more tests.
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Aug 2019 23:15:07 +0200
parents fceb0977275a
children fd75825d06db
comparison
equal deleted inserted replaced
17656:2adce9da20d8 17657:0da9bc55c31a
1 " Tests for ":highlight" and highlighting. 1 " Tests for ":highlight" and highlighting.
2 2
3 source view_util.vim 3 source view_util.vim
4 source screendump.vim 4 source screendump.vim
5 source check.vim
5 6
6 func Test_highlight() 7 func Test_highlight()
7 " basic test if ":highlight" doesn't crash 8 " basic test if ":highlight" doesn't crash
8 highlight 9 highlight
9 hi Search 10 hi Search
530 set t_Co=0 531 set t_Co=0
531 redraw 532 redraw
532 endfunc 533 endfunc
533 534
534 func Test_cursorline_after_yank() 535 func Test_cursorline_after_yank()
535 if !CanRunVimInTerminal() 536 CheckScreendump
536 throw 'Skipped: cannot make screendumps'
537 endif
538 537
539 call writefile([ 538 call writefile([
540 \ 'set cul rnu', 539 \ 'set cul rnu',
541 \ 'call setline(1, ["","1","2","3",""])', 540 \ 'call setline(1, ["","1","2","3",""])',
542 \ ], 'Xtest_cursorline_yank') 541 \ ], 'Xtest_cursorline_yank')
552 call StopVimInTerminal(buf) 551 call StopVimInTerminal(buf)
553 call delete('Xtest_cursorline_yank') 552 call delete('Xtest_cursorline_yank')
554 endfunc 553 endfunc
555 554
556 func Test_cursorline_with_visualmode() 555 func Test_cursorline_with_visualmode()
557 if !CanRunVimInTerminal() 556 CheckScreendump
558 throw 'Skipped: cannot make screendumps'
559 endif
560 557
561 call writefile([ 558 call writefile([
562 \ 'set cul', 559 \ 'set cul',
563 \ 'call setline(1, repeat(["abc"], 50))', 560 \ 'call setline(1, repeat(["abc"], 50))',
564 \ ], 'Xtest_cursorline_with_visualmode') 561 \ ], 'Xtest_cursorline_with_visualmode')
572 call StopVimInTerminal(buf) 569 call StopVimInTerminal(buf)
573 call delete('Xtest_cursorline_with_visualmode') 570 call delete('Xtest_cursorline_with_visualmode')
574 endfunc 571 endfunc
575 572
576 func Test_wincolor() 573 func Test_wincolor()
577 if !CanRunVimInTerminal() 574 CheckScreendump
578 throw 'Skipped: cannot make screendumps'
579 endif
580 575
581 let lines =<< trim END 576 let lines =<< trim END
582 set cursorline cursorcolumn rnu 577 set cursorline cursorcolumn rnu
583 call setline(1, ["","1111111111","22222222222","3 here 3",""]) 578 call setline(1, ["","1111111111","22222222222","3 here 3",""])
584 set wincolor=Pmenu 579 set wincolor=Pmenu