diff options
author | AdnoC <adam.r.cutler@gmail.com> | 2016-05-17 16:25:11 -0400 |
---|---|---|
committer | AdnoC <adam.r.cutler@gmail.com> | 2016-05-17 16:36:41 -0400 |
commit | e5eea7fa06ae7057521755d1f638d34e049bd379 (patch) | |
tree | e7e2241ef36f792e143e6da45ef85a6033689a31 /test/functional/ui/highlight_spec.lua | |
parent | 954aeafa8999d4b3ea9cc9f823457a223e086863 (diff) | |
download | rneovim-e5eea7fa06ae7057521755d1f638d34e049bd379.tar.gz rneovim-e5eea7fa06ae7057521755d1f638d34e049bd379.tar.bz2 rneovim-e5eea7fa06ae7057521755d1f638d34e049bd379.zip |
test: Screen also checks 'special' when testing attribute equality
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index c46dd59ada..c773836c6e 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -312,11 +312,12 @@ describe('New special highlight color attribute', function() screen = Screen.new(25,10) screen:attach() screen:set_default_attr_ignore({ - {bold=true, foreground=Screen.colors.Blue} + [1] = {bold = true, foreground = Screen.colors.Blue}, + [2] = {bold = true} }) end) - it('used for undercurls', function() + it('can be set and is applied like foreground or background', function() execute('syntax on') execute('syn keyword TmpKeyword neovim') execute('syn keyword TmpKeyword1 special') @@ -343,19 +344,19 @@ describe('New special highlight color attribute', function() {1:neovim} | awesome {1:neovim} | wordcontainingneovim | - special | - {2:specialwithbg} | - {3:specialwithfg} | + {2:special} | + {3:specialwithbg} | + {4:specialwithfg} | | {1:neovim} tabbed^ | ~ | - {4:-- INSERT --} | + -- INSERT -- | ]],{ [1] = {background = Screen.colors.Yellow, foreground = Screen.colors.Red, special = Screen.colors.Red}, - [2] = {special = Screen.colors.Red, background = Screen.colors.Yellow}, - [3] = {foreground = Screen.colors.Red, special = Screen.colors.Red}, - [4] = {bold = true} + [2] = {special = Screen.colors.Red}, + [3] = {special = Screen.colors.Red, background = Screen.colors.Yellow}, + [4] = {foreground = Screen.colors.Red, special = Screen.colors.Red}, }) end) |