diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-08-14 22:57:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 22:57:37 +0200 |
commit | e57988a9fb20067e474dda038943ec7573b47415 (patch) | |
tree | 4f7ebcf0702e188aa124b56694c1f62879dc663b /test/functional/ui/sign_spec.lua | |
parent | 884b37fd2adda17fbcc2392ae871e6999b758895 (diff) | |
parent | 725074aafcb0b2b70fc798aec84a5ca9c2233716 (diff) | |
download | rneovim-e57988a9fb20067e474dda038943ec7573b47415.tar.gz rneovim-e57988a9fb20067e474dda038943ec7573b47415.tar.bz2 rneovim-e57988a9fb20067e474dda038943ec7573b47415.zip |
Merge pull request #5197 from bfredl/screenfix
cleanup of screen tests: remove unnecessary hl_group and ignores of highlights
Diffstat (limited to 'test/functional/ui/sign_spec.lua')
-rw-r--r-- | test/functional/ui/sign_spec.lua | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/test/functional/ui/sign_spec.lua b/test/functional/ui/sign_spec.lua index 2b6e294627..eabd05b349 100644 --- a/test/functional/ui/sign_spec.lua +++ b/test/functional/ui/sign_spec.lua @@ -9,7 +9,11 @@ describe('Signs', function() clear() screen = Screen.new() screen:attach() - screen:set_default_attr_ignore( {{}, {bold=true, foreground=255}} ) + screen:set_default_attr_ids( { + [0] = {bold=true, foreground=255}, + [1] = {background = Screen.colors.Yellow}, + [2] = {foreground = Screen.colors.DarkBlue, background = Screen.colors.Grey}, + } ) end) after_each(function() @@ -25,19 +29,19 @@ describe('Signs', function() execute('sign place 2 line=3 name=piet buffer=1') execute('sign place 3 line=1 name=pietx buffer=1') screen:expect([[ - >!a | - b | - >>c | - ^ | - ~ | - ~ | - ~ | - ~ | - ~ | - ~ | - ~ | - ~ | - ~ | + {1:>!}a | + {2: }b | + {1:>>}c | + {2: }^ | + {2: }{0:~ }| + {2: }{0:~ }| + {2: }{0:~ }| + {2: }{0:~ }| + {2: }{0:~ }| + {2: }{0:~ }| + {2: }{0:~ }| + {2: }{0:~ }| + {2: }{0:~ }| :sign place 3 line=1 name=pietx buffer=1 | ]]) end) |