diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-08-09 13:19:31 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-08-14 21:53:02 +0200 |
commit | 9c4a94f964cfd4791fba2417d56cd0dc55366ee4 (patch) | |
tree | 27d3529553e330c5e28a14ac7b88176a0d260f92 /test/functional/ui/bufhl_spec.lua | |
parent | 884b37fd2adda17fbcc2392ae871e6999b758895 (diff) | |
download | rneovim-9c4a94f964cfd4791fba2417d56cd0dc55366ee4.tar.gz rneovim-9c4a94f964cfd4791fba2417d56cd0dc55366ee4.tar.bz2 rneovim-9c4a94f964cfd4791fba2417d56cd0dc55366ee4.zip |
tests: remove deprecated hl_colors
Diffstat (limited to 'test/functional/ui/bufhl_spec.lua')
-rw-r--r-- | test/functional/ui/bufhl_spec.lua | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua index f91aa8d402..8de4112865 100644 --- a/test/functional/ui/bufhl_spec.lua +++ b/test/functional/ui/bufhl_spec.lua @@ -8,30 +8,21 @@ describe('Buffer highlighting', function() local screen local curbuf - local hl_colors = { - NonText = Screen.colors.Blue, - Question = Screen.colors.SeaGreen, - String = Screen.colors.Fuchsia, - Statement = Screen.colors.Brown, - Special = Screen.colors.SlateBlue, - Identifier = Screen.colors.DarkCyan - } - before_each(function() clear() execute("syntax on") screen = Screen.new(40, 8) screen:attach() - screen:set_default_attr_ignore( {{bold=true, foreground=hl_colors.NonText}} ) + screen:set_default_attr_ignore( {{bold=true, foreground=Screen.colors.Blue}} ) screen:set_default_attr_ids({ - [1] = {foreground = hl_colors.String}, - [2] = {foreground = hl_colors.Statement, bold = true}, - [3] = {foreground = hl_colors.Special}, - [4] = {bold = true, foreground = hl_colors.Special}, - [5] = {foreground = hl_colors.Identifier}, + [1] = {foreground = Screen.colors.Fuchsia}, -- String + [2] = {foreground = Screen.colors.Brown, bold = true}, -- Statement + [3] = {foreground = Screen.colors.SlateBlue}, -- Special + [4] = {bold = true, foreground = Screen.colors.SlateBlue}, + [5] = {foreground = Screen.colors.DarkCyan}, -- Identifier [6] = {bold = true}, - [7] = {underline = true, bold = true, foreground = hl_colors.Special}, - [8] = {foreground = hl_colors.Special, underline = true} + [7] = {underline = true, bold = true, foreground = Screen.colors.SlateBlue}, + [8] = {foreground = Screen.colors.SlateBlue, underline = true} }) curbuf = request('vim_get_current_buffer') end) |