aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-02 14:57:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-02 14:57:15 -0300
commit3d167c49d2048009fa12f57198bd05ca06ac72f2 (patch)
treea662a544bf596fe0fb9ccb71aa76df0c581e3c66 /test/functional/ui/highlight_spec.lua
parent2eda611cbc9fc79b97d906f3810a2b5c0d928be6 (diff)
parentf468fb70cb6d82dca5b9a23706b4b6b70a3beab6 (diff)
downloadrneovim-3d167c49d2048009fa12f57198bd05ca06ac72f2.tar.gz
rneovim-3d167c49d2048009fa12f57198bd05ca06ac72f2.tar.bz2
rneovim-3d167c49d2048009fa12f57198bd05ca06ac72f2.zip
Merge PR #1883 'More work on highlight tests + update documentation'
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 15d5839ca5..52ab3cb5bf 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -29,19 +29,19 @@ end)
describe('Default highlight groups', function()
-- Test the default attributes for highlight groups shown by the :highlight
-- command
- local screen, hlgroup_colors
+ local screen
- setup(function()
- hlgroup_colors = {
- NonText = nvim('name_to_color', 'Blue'),
- Question = nvim('name_to_color', 'SeaGreen')
- }
- end)
+ local hlgroup_colors = {
+ NonText = Screen.colors.Blue,
+ Question = Screen.colors.SeaGreen
+ }
before_each(function()
clear()
screen = Screen.new()
screen:attach()
+ --ignore highligting of ~-lines
+ screen:set_default_attr_ignore( {{bold=true, foreground=hlgroup_colors.NonText}} )
end)
after_each(function()
@@ -52,8 +52,6 @@ describe('Default highlight groups', function()
[1] = {reverse = true, bold = true}, -- StatusLine
[2] = {reverse = true} -- StatusLineNC
})
- --ignore highligting of ~-lines
- screen:set_default_attr_ignore( {{}, {bold=true, foreground=hlgroup_colors.NonText}} )
execute('sp', 'vsp', 'vsp')
screen:expect([[
^ {2:|} {2:|} |