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/searchhl_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/searchhl_spec.lua')
-rw-r--r-- | test/functional/ui/searchhl_spec.lua | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index 894a75d355..68f1f8b1e1 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -6,23 +6,18 @@ local execute = helpers.execute describe('search highlighting', function() local screen local colors = Screen.colors - local hl_colors = { - NonText = colors.Blue, - Search = colors.Yellow, - Message = colors.Red, - } before_each(function() clear() screen = Screen.new(40, 7) screen:attach() --ignore highligting of ~-lines + screen:set_default_attr_ignore( {{bold=true, foreground=colors.Blue}} ) screen:set_default_attr_ids( { - [1] = {background = hl_colors.Search}, + [1] = {background = colors.Yellow}, -- Search [2] = {reverse = true}, - [3] = {foreground = hl_colors.Message}, + [3] = {foreground = colors.Red}, -- Message }) - screen:set_default_attr_ignore( {{bold=true, foreground=hl_colors.NonText}} ) end) it('is disabled by ":set nohlsearch"', function() @@ -250,8 +245,8 @@ describe('search highlighting', function() ~ | ~ | {3:search hit BOTTOM, continuing at TOP} | - ]], {[1] = {background = hl_colors.Search}, [2] = {reverse = true}, - [3] = {foreground = hl_colors.Message}, [4] = {bold = true, background = + ]], {[1] = {background = colors.Yellow}, [2] = {reverse = true}, + [3] = {foreground = colors.Red}, [4] = {bold = true, background = colors.Green}, [5] = {italic = true, background = colors.Magenta}}) execute("call clearmatches()") @@ -276,9 +271,9 @@ describe('search highlighting', function() ~ | ~ | :syntax keyword MyGroup special | - ]], {[1] = {background = hl_colors.Search}, [2] = {reverse = true}, - [3] = {foreground = hl_colors.Message}, [4] = {bold = true, - background = colors.Green}, [5] = {bold = true, background = hl_colors.Search}}) + ]], {[1] = {background = colors.Yellow}, [2] = {reverse = true}, + [3] = {foreground = colors.Red}, [4] = {bold = true, + background = colors.Green}, [5] = {bold = true, background = colors.Yellow}}) end) end) |