aboutsummaryrefslogtreecommitdiff
path: root/test/functional/editor/tabpage_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-05-26 09:34:29 +0200
committerbfredl <bjorn.linse@gmail.com>2024-05-26 10:24:27 +0200
commitb90d7c36cf8a93e02d834eb53f5d0c8f19a9d7fa (patch)
treebe6be35f4b823cb4bbb220e8318f63b8292d2b82 /test/functional/editor/tabpage_spec.lua
parent05a65432b6bb718d67dda370144e34faf933c086 (diff)
downloadrneovim-b90d7c36cf8a93e02d834eb53f5d0c8f19a9d7fa.tar.gz
rneovim-b90d7c36cf8a93e02d834eb53f5d0c8f19a9d7fa.tar.bz2
rneovim-b90d7c36cf8a93e02d834eb53f5d0c8f19a9d7fa.zip
refactor(tests): more global highlight definitions
Diffstat (limited to 'test/functional/editor/tabpage_spec.lua')
-rw-r--r--test/functional/editor/tabpage_spec.lua23
1 files changed, 9 insertions, 14 deletions
diff --git a/test/functional/editor/tabpage_spec.lua b/test/functional/editor/tabpage_spec.lua
index 0b26494436..c20a6e5cb5 100644
--- a/test/functional/editor/tabpage_spec.lua
+++ b/test/functional/editor/tabpage_spec.lua
@@ -102,14 +102,9 @@ describe('tabpage', function()
it('switching tabpage after setting laststatus=3 #19591', function()
local screen = Screen.new(40, 8)
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = Screen.colors.Blue },
- [1] = { bold = true, reverse = true }, -- StatusLine
- [2] = { reverse = true }, -- TabLineFill
- [3] = { bold = true }, -- TabLineSel
- [4] = { background = Screen.colors.LightGrey, underline = true }, -- TabLine
- [5] = { bold = true, foreground = Screen.colors.Magenta },
- })
+ screen:add_extra_attr_ids {
+ [100] = { bold = true, foreground = Screen.colors.Fuchsia },
+ }
screen:attach()
command('tabnew')
@@ -118,18 +113,18 @@ describe('tabpage', function()
command('tabnext')
feed('<C-G>')
screen:expect([[
- {4: [No Name] }{3: [No Name] }{2: }{4:X}|
+ {24: [No Name] }{5: [No Name] }{2: }{24:X}|
^ |
- {0:~ }|*4
- {1:[No Name] }|
+ {1:~ }|*4
+ {3:[No Name] }|
"[No Name]" --No lines in buffer-- |
]])
command('vnew')
screen:expect([[
- {4: [No Name] }{3: }{5:2}{3: [No Name] }{2: }{4:X}|
+ {24: [No Name] }{5: }{100:2}{5: [No Name] }{2: }{24:X}|
^ │ |
- {0:~ }│{0:~ }|*4
- {1:[No Name] }|
+ {1:~ }│{1:~ }|*4
+ {3:[No Name] }|
"[No Name]" --No lines in buffer-- |
]])
end)