comparison src/testdir/test_syn_attr.vim @ 18056:624109b3766e v8.1.2023

patch 8.1.2023: no test for synIDattr() returning "strikethrough" Commit: https://github.com/vim/vim/commit/dcb2b9cb085288d2a2e4cc31abc591ade04e782e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 13 21:26:39 2019 +0200 patch 8.1.2023: no test for synIDattr() returning "strikethrough" Problem: No test for synIDattr() returning "strikethrough". Solution: Extend the synIDattr() test. (Jaskaran Singh, closes https://github.com/vim/vim/issues/4929)
author Bram Moolenaar <Bram@vim.org>
date Fri, 13 Sep 2019 21:30:03 +0200
parents af3d441845cd
children 546bdeef35f1
comparison
equal deleted inserted replaced
18055:9ca92f1defef 18056:624109b3766e
11 call assert_equal('1', synIDattr(hlID("Mine"), "inverse", 'cterm')) 11 call assert_equal('1', synIDattr(hlID("Mine"), "inverse", 'cterm'))
12 hi Mine term=underline cterm=standout gui=undercurl 12 hi Mine term=underline cterm=standout gui=undercurl
13 call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term')) 13 call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term'))
14 call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm')) 14 call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
15 call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui')) 15 call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui'))
16 hi Mine gui=strikethrough
17 call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
16 hi Mine term=NONE cterm=NONE gui=NONE 18 hi Mine term=NONE cterm=NONE gui=NONE
17 call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) 19 call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term'))
18 call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm')) 20 call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))
19 call assert_equal('', synIDattr(hlID("Mine"), "reverse", 'term')) 21 call assert_equal('', synIDattr(hlID("Mine"), "reverse", 'term'))
20 call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm')) 22 call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm'))
21 call assert_equal('', synIDattr(hlID("Mine"), "underline", 'term')) 23 call assert_equal('', synIDattr(hlID("Mine"), "underline", 'term'))
22 call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm')) 24 call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm'))
23 call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui')) 25 call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
26 call assert_equal('', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
24 27
25 if has('gui') 28 if has('gui')
26 let fontname = getfontname() 29 let fontname = getfontname()
27 if fontname == '' 30 if fontname == ''
28 let fontname = 'something' 31 let fontname = 'something'