aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_syn_attr.vim
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-11-30 20:35:25 +0000
committerJosh Rahm <joshuarahm@gmail.com>2023-11-30 20:35:25 +0000
commit1b7b916b7631ddf73c38e3a0070d64e4636cb2f3 (patch)
treecd08258054db80bb9a11b1061bb091c70b76926a /src/nvim/testdir/test_syn_attr.vim
parenteaa89c11d0f8aefbb512de769c6c82f61a8baca3 (diff)
parent4a8bf24ac690004aedf5540fa440e788459e5e34 (diff)
downloadrneovim-aucmd_textputpost.tar.gz
rneovim-aucmd_textputpost.tar.bz2
rneovim-aucmd_textputpost.zip
Merge remote-tracking branch 'upstream/master' into aucmd_textputpostaucmd_textputpost
Diffstat (limited to 'src/nvim/testdir/test_syn_attr.vim')
-rw-r--r--src/nvim/testdir/test_syn_attr.vim51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/nvim/testdir/test_syn_attr.vim b/src/nvim/testdir/test_syn_attr.vim
deleted file mode 100644
index 88f9d0d84d..0000000000
--- a/src/nvim/testdir/test_syn_attr.vim
+++ /dev/null
@@ -1,51 +0,0 @@
-" Test syntax highlighting functions.
-
-func Test_missing_attr()
- throw 'Skipped: use test/functional/legacy/syn_attr_spec.lua'
-
- hi Mine term=bold cterm=italic
- call assert_equal('Mine', synIDattr(hlID("Mine"), "name"))
- call assert_equal('', synIDattr("Mine"->hlID(), "bg", 'term'))
- call assert_equal('', synIDattr("Mine"->hlID(), "fg", 'term'))
- call assert_equal('', synIDattr("Mine"->hlID(), "sp", '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'))
- 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'))
- call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
- call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui'))
-
- hi Mine term=underdouble cterm=underdotted gui=underdashed
- call assert_equal('1', synIDattr(hlID("Mine"), "underdouble", 'term'))
- call assert_equal('1', synIDattr(hlID("Mine"), "underdotted", 'cterm'))
- call assert_equal('1', synIDattr("Mine"->hlID(), "underdashed", 'gui'))
-
- hi Mine term=nocombine gui=strikethrough
- call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
- call assert_equal('1', synIDattr(hlID("Mine"), "nocombine", 'term'))
- call assert_equal('', synIDattr(hlID("Mine"), "nocombine", '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'))
- 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'))
- call assert_equal('', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
-
- if has('gui')
- let fontname = getfontname()
- if fontname == ''
- let fontname = 'something'
- endif
- exe "hi Mine guifg=blue guibg=red font='" . fontname . "'"
- call assert_equal('blue', synIDattr(hlID("Mine"), "fg", 'gui'))
- call assert_equal('red', synIDattr(hlID("Mine"), "bg", 'gui'))
- call assert_equal(fontname, synIDattr(hlID("Mine"), "font", 'gui'))
- endif
-endfunc