aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/fold_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-03-27 10:35:50 +0100
committerbfredl <bjorn.linse@gmail.com>2024-03-27 12:32:53 +0100
commitb556bd1a535d39418b75fe5403e8f117f7f3166c (patch)
treeb571d9be6ef7be7d8adc708fe78a730060968569 /test/functional/legacy/fold_spec.lua
parent63f7b1f31eae9e2710bd973f05a575f26e0208d9 (diff)
downloadrneovim-b556bd1a535d39418b75fe5403e8f117f7f3166c.tar.gz
rneovim-b556bd1a535d39418b75fe5403e8f117f7f3166c.tar.bz2
rneovim-b556bd1a535d39418b75fe5403e8f117f7f3166c.zip
refactor(tests): use global defaults instead of set_default_attr_ids (2)
Diffstat (limited to 'test/functional/legacy/fold_spec.lua')
-rw-r--r--test/functional/legacy/fold_spec.lua22
1 files changed, 8 insertions, 14 deletions
diff --git a/test/functional/legacy/fold_spec.lua b/test/functional/legacy/fold_spec.lua
index c39aae87d2..0a65948fc7 100644
--- a/test/functional/legacy/fold_spec.lua
+++ b/test/functional/legacy/fold_spec.lua
@@ -14,12 +14,6 @@ describe('folding', function()
helpers.clear()
screen = Screen.new(45, 8)
- screen:set_default_attr_ids({
- [1] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
- [2] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.LightGrey }, -- Folded
- [3] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.Grey }, -- FoldColumn
- [4] = { foreground = Screen.colors.Brown }, -- LineNr
- })
screen:attach()
end)
@@ -222,15 +216,15 @@ describe('folding', function()
command('call setline(1, ["{{{1", "nline 1", "{{{1", "line 2"])')
screen:expect([[
- {3:+ }{4: 0 }{2:^+-- 2 lines: ·························}|
- {3:+ }{4: 1 }{2:+-- 2 lines: ·························}|
+ {7:+ }{8: 0 }{13:^+-- 2 lines: ·························}|
+ {7:+ }{8: 1 }{13:+-- 2 lines: ·························}|
{1:~ }|*5
|
]])
feed('j')
screen:expect([[
- {3:+ }{4: 1 }{2:+-- 2 lines: ·························}|
- {3:+ }{4: 0 }{2:^+-- 2 lines: ·························}|
+ {7:+ }{8: 1 }{13:+-- 2 lines: ·························}|
+ {7:+ }{8: 0 }{13:^+-- 2 lines: ·························}|
{1:~ }|*5
|
]])
@@ -246,7 +240,7 @@ describe('folding', function()
screen:expect([[
^one |
- {2:+-- 2 lines: two····························}|
+ {13:+-- 2 lines: two····························}|
four |
{1:~ }|*4
|
@@ -263,7 +257,7 @@ describe('folding', function()
feed('4G')
screen:expect([[
one |
- {2:+-- 2 lines: two····························}|
+ {13:+-- 2 lines: two····························}|
^four |
{1:~ }|*4
|
@@ -280,7 +274,7 @@ describe('folding', function()
feed('1G')
screen:expect([[
^one |
- {2:+-- 2 lines: two····························}|
+ {13:+-- 2 lines: two····························}|
four |
{1:~ }|*4
|
@@ -297,7 +291,7 @@ describe('folding', function()
feed('k')
screen:expect([[
^one |
- {2:+-- 2 lines: two····························}|
+ {13:+-- 2 lines: two····························}|
four |
{1:~ }|*4
|