annotate src/testdir/test51.in @ 10930:126405b39964 v8.0.0354

patch 8.0.0354: test to check that setting termcap key fails sometimes commit https://github.com/vim/vim/commit/1c410400fad79068b16dc4c6c7a023463a0858cf Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 15:20:03 2017 +0100 patch 8.0.0354: test to check that setting termcap key fails sometimes Problem: Test to check that setting termcap key fails sometimes. Solution: Check for "t_k1" to exist. (Christian Brabandt, closes https://github.com/vim/vim/issues/1459)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 15:30:05 +0100
parents e5dddd764fef
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Tests for ":highlight". vim: set ft=vim :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :" basic test if ":highlight" doesn't crash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :highlight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :hi Search
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :" test setting colors.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :" test clearing one color and all doesn't generate error or warning
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :hi NewGroup term=bold cterm=italic ctermfg=DarkBlue ctermbg=Grey gui= guifg=#00ff00 guibg=Cyan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :hi Group2 term= cterm=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :hi Group3 term=underline cterm=bold
557
862863033fdd updated for version 7.0158
vimboss
parents: 419
diff changeset
13 :redir! >test.out
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :hi NewGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :hi Group2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :hi Group3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :hi clear NewGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :hi NewGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :hi Group2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :hi Group2 NONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :hi Group2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 :hi clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :hi Group3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :hi Crash term='asdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 :redir END
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :%s/ctermfg=\d*/ctermfg=2/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 :%s/ctermbg=\d*/ctermbg=3/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 :" filter out possibly translated error message
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 :%s/E475: [^:]*:/E475:/
419
f713fc55bf7b updated for version 7.0109
vimboss
parents: 7
diff changeset
32 :" fix the fileformat
f713fc55bf7b updated for version 7.0109
vimboss
parents: 7
diff changeset
33 :set ff&
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :wq!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36