diff options
author | Stéphane Campinas <stephane.campinas@gmail.com> | 2016-09-11 15:03:22 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-09-16 14:02:59 +0200 |
commit | 21eee40cdbe77d4d2095db14b5b7f8de27a5ae52 (patch) | |
tree | 46a6e86bb1707aa059ad314a579761f263846c37 /src | |
parent | bc1a5db6cc103f125a3705970d0018fb145aca4a (diff) | |
download | rneovim-21eee40cdbe77d4d2095db14b5b7f8de27a5ae52.tar.gz rneovim-21eee40cdbe77d4d2095db14b5b7f8de27a5ae52.tar.bz2 rneovim-21eee40cdbe77d4d2095db14b5b7f8de27a5ae52.zip |
test: synIDattr returns empty, not -1
- Behavior changed in 7.4.1547
- Also removed N/A specs: nvim does not support ":hi term=..."
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_syn_attr.vim | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/nvim/testdir/test_syn_attr.vim b/src/nvim/testdir/test_syn_attr.vim index 20e9b17c46..809442eb94 100644 --- a/src/nvim/testdir/test_syn_attr.vim +++ b/src/nvim/testdir/test_syn_attr.vim @@ -1,24 +1,17 @@ " Test syntax highlighting functions. func Test_missing_attr() - hi Mine term=bold cterm=italic + hi Mine cterm=italic call assert_equal('Mine', synIDattr(hlID("Mine"), "name")) - call assert_equal('', synIDattr(hlID("Mine"), "bg", 'term')) - call assert_equal('1', synIDattr(hlID("Mine"), "bold", 'term')) call assert_equal('1', synIDattr(hlID("Mine"), "italic", 'cterm')) - hi Mine term=reverse cterm=inverse - call assert_equal('1', synIDattr(hlID("Mine"), "reverse", 'term')) + hi Mine cterm=inverse call assert_equal('1', synIDattr(hlID("Mine"), "inverse", 'cterm')) - hi Mine term=underline cterm=standout gui=undercurl - call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term')) + hi Mine cterm=standout gui=undercurl call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm')) call assert_equal('1', synIDattr(hlID("Mine"), "undercurl", 'gui')) - hi Mine term=NONE cterm=NONE gui=NONE - call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) + hi Mine cterm=NONE gui=NONE call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm')) - call assert_equal('', synIDattr(hlID("Mine"), "reverse", 'term')) call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm')) - call assert_equal('', synIDattr(hlID("Mine"), "underline", 'term')) call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm')) call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui')) |