diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-13 21:26:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-13 21:26:39 +0200 |
commit | dcb2b9cb085288d2a2e4cc31abc591ade04e782e (patch) | |
tree | 8e62d2c364e338e6c795174404063ad8ae694daf /src/testdir/test_syn_attr.vim | |
parent | 0eddca40a6d878823fc90b0cd25d5d101506c564 (diff) | |
download | vim-git-dcb2b9cb085288d2a2e4cc31abc591ade04e782e.tar.gz |
patch 8.1.2023: no test for synIDattr() returning "strikethrough"v8.1.2023
Problem: No test for synIDattr() returning "strikethrough".
Solution: Extend the synIDattr() test. (Jaskaran Singh, closes #4929)
Diffstat (limited to 'src/testdir/test_syn_attr.vim')
-rw-r--r-- | src/testdir/test_syn_attr.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_syn_attr.vim b/src/testdir/test_syn_attr.vim index cc2067818..a27a2cbe4 100644 --- a/src/testdir/test_syn_attr.vim +++ b/src/testdir/test_syn_attr.vim @@ -13,6 +13,8 @@ func Test_missing_attr() call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term')) call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm')) call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui')) + hi Mine gui=strikethrough + call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui')) hi Mine term=NONE cterm=NONE gui=NONE call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm')) @@ -21,6 +23,7 @@ func Test_missing_attr() call assert_equal('', synIDattr(hlID("Mine"), "underline", 'term')) call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm')) call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui')) + call assert_equal('', synIDattr(hlID("Mine"), "strikethrough", 'gui')) if has('gui') let fontname = getfontname() |