comparison src/testdir/test_syn_attr.vim @ 17914:af3d441845cd v8.1.1953

patch 8.1.1953: more functions can be used as a method Commit: https://github.com/vim/vim/commit/f9f24ce7a0e5988fedf2e2ff751818f9b07510a6 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 31 21:17:39 2019 +0200 patch 8.1.1953: more functions can be used as a method Problem: More functions can be used as a method. Solution: Allow more functions to be used as a method.
author Bram Moolenaar <Bram@vim.org>
date Sat, 31 Aug 2019 21:30:04 +0200
parents 201773c00b96
children 624109b3766e
comparison
equal deleted inserted replaced
17913:be8ab5bb74ce 17914:af3d441845cd
1 " Test syntax highlighting functions. 1 " Test syntax highlighting functions.
2 2
3 func Test_missing_attr() 3 func Test_missing_attr()
4 hi Mine term=bold cterm=italic 4 hi Mine term=bold cterm=italic
5 call assert_equal('Mine', synIDattr(hlID("Mine"), "name")) 5 call assert_equal('Mine', synIDattr(hlID("Mine"), "name"))
6 call assert_equal('', synIDattr(hlID("Mine"), "bg", 'term')) 6 call assert_equal('', synIDattr("Mine"->hlID(), "bg", 'term'))
7 call assert_equal('1', synIDattr(hlID("Mine"), "bold", 'term')) 7 call assert_equal('1', synIDattr(hlID("Mine"), "bold", 'term'))
8 call assert_equal('1', synIDattr(hlID("Mine"), "italic", 'cterm')) 8 call assert_equal('1', synIDattr(hlID("Mine"), "italic", 'cterm'))
9 hi Mine term=reverse cterm=inverse 9 hi Mine term=reverse cterm=inverse
10 call assert_equal('1', synIDattr(hlID("Mine"), "reverse", 'term')) 10 call assert_equal('1', synIDattr(hlID("Mine"), "reverse", 'term'))
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(hlID("Mine"), "undercurl", 'gui')) 15 call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui'))
16 hi Mine term=NONE cterm=NONE gui=NONE 16 hi Mine term=NONE cterm=NONE gui=NONE
17 call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) 17 call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term'))
18 call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm')) 18 call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))
19 call assert_equal('', synIDattr(hlID("Mine"), "reverse", 'term')) 19 call assert_equal('', synIDattr(hlID("Mine"), "reverse", 'term'))
20 call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm')) 20 call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm'))