aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/helpers.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-08-14 22:57:37 +0200
committerGitHub <noreply@github.com>2016-08-14 22:57:37 +0200
commite57988a9fb20067e474dda038943ec7573b47415 (patch)
tree4f7ebcf0702e188aa124b56694c1f62879dc663b /test/functional/terminal/helpers.lua
parent884b37fd2adda17fbcc2392ae871e6999b758895 (diff)
parent725074aafcb0b2b70fc798aec84a5ca9c2233716 (diff)
downloadrneovim-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/terminal/helpers.lua')
-rw-r--r--test/functional/terminal/helpers.lua17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/functional/terminal/helpers.lua b/test/functional/terminal/helpers.lua
index 3d1530bd90..1b8893c988 100644
--- a/test/functional/terminal/helpers.lua
+++ b/test/functional/terminal/helpers.lua
@@ -44,14 +44,13 @@ local function screen_setup(extra_height, command)
screen:set_default_attr_ids({
[1] = {reverse = true}, -- focused cursor
[2] = {background = 11}, -- unfocused cursor
- })
- screen:set_default_attr_ignore({
- [1] = {bold = true},
- [2] = {foreground = 12},
- [3] = {bold = true, reverse = true},
- [5] = {background = 11},
- [6] = {foreground = 130},
- [7] = {foreground = 15, background = 1}, -- error message
+ [3] = {bold = true},
+ [4] = {foreground = 12},
+ [5] = {bold = true, reverse = true},
+ [6] = {background = 11},
+ [7] = {foreground = 130},
+ [8] = {foreground = 15, background = 1}, -- error message
+ [9] = {foreground = 4},
})
screen:attach(false)
@@ -76,7 +75,7 @@ local function screen_setup(extra_height, command)
table.insert(expected, empty_line)
end
- table.insert(expected, '-- TERMINAL -- ')
+ table.insert(expected, '{3:-- TERMINAL --} ')
screen:expect(table.concat(expected, '\n'))
else
wait()