Mercurial > vim
annotate src/testdir/test51.in @ 10704:6736cb425720 v8.0.0242
patch 8.0.0242: no tests for user command completion
commit https://github.com/vim/vim/commit/65c836e6004647196ae0bc18e409a9e7b79207c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 26 22:07:33 2017 +0100
patch 8.0.0242: no tests for user command completion
Problem: Completion of user defined functions is not covered by tests.
Solution: Add tests. Also test various errors of user-defined commands.
(Dominique Pelle, closes #1413)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 26 Jan 2017 22:15:04 +0100 |
parents | e5dddd764fef |
children |
rev | line source |
---|---|
7 | 1 Tests for ":highlight". vim: set ft=vim : |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :" basic test if ":highlight" doesn't crash | |
6 :highlight | |
7 :hi Search | |
8 :" test setting colors. | |
9 :" test clearing one color and all doesn't generate error or warning | |
10 :hi NewGroup term=bold cterm=italic ctermfg=DarkBlue ctermbg=Grey gui= guifg=#00ff00 guibg=Cyan | |
11 :hi Group2 term= cterm= | |
12 :hi Group3 term=underline cterm=bold | |
557 | 13 :redir! >test.out |
7 | 14 :hi NewGroup |
15 :hi Group2 | |
16 :hi Group3 | |
17 :hi clear NewGroup | |
18 :hi NewGroup | |
19 :hi Group2 | |
20 :hi Group2 NONE | |
21 :hi Group2 | |
22 :hi clear | |
23 :hi Group3 | |
24 :hi Crash term='asdf | |
25 :redir END | |
26 :" filter ctermfg and ctermbg, the numbers depend on the terminal | |
10270
e5dddd764fef
commit https://github.com/vim/vim/commit/3e8474dd50f64c998bb665ce852f584a58dede6b
Christian Brabandt <cb@256bit.org>
parents:
557
diff
changeset
|
27 :e! test.out |
7 | 28 :%s/ctermfg=\d*/ctermfg=2/ |
29 :%s/ctermbg=\d*/ctermbg=3/ | |
30 :" filter out possibly translated error message | |
31 :%s/E475: [^:]*:/E475:/ | |
419 | 32 :" fix the fileformat |
33 :set ff& | |
7 | 34 :wq! |
35 ENDTEST | |
36 |