aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/063_match_and_matchadd_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/063_match_and_matchadd_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/063_match_and_matchadd_spec.lua')
-rw-r--r--test/functional/legacy/063_match_and_matchadd_spec.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/functional/legacy/063_match_and_matchadd_spec.lua b/test/functional/legacy/063_match_and_matchadd_spec.lua
index 0c2b59932b..b875d32e56 100644
--- a/test/functional/legacy/063_match_and_matchadd_spec.lua
+++ b/test/functional/legacy/063_match_and_matchadd_spec.lua
@@ -12,10 +12,6 @@ describe('063: Test for ":match", "matchadd()" and related functions', function(
it('is working', function()
local screen = Screen.new(40, 5)
screen:attach()
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = Screen.colors.Blue },
- [1] = { background = Screen.colors.Red },
- })
command('highlight MyGroup1 term=bold ctermbg=red guibg=red')
command('highlight MyGroup2 term=italic ctermbg=green guibg=green')
@@ -25,8 +21,8 @@ describe('063: Test for ":match", "matchadd()" and related functions', function(
insert('abcdefghijklmnopq')
command("call matchaddpos('MyGroup1', [[1, 5], [1, 8, 3]], 10, 3)")
screen:expect([[
- abcd{1:e}fg{1:hij}klmnop^q |
- {0:~ }|*3
+ abcd{30:e}fg{30:hij}klmnop^q |
+ {1:~ }|*3
|
]])
@@ -34,8 +30,8 @@ describe('063: Test for ":match", "matchadd()" and related functions', function(
command("call setline(1, 'abcdΣabcdef')")
command("call matchaddpos('MyGroup1', [[1, 4, 2], [1, 9, 2]])")
screen:expect([[
- abc{1:dΣ}ab{1:cd}e^f |
- {0:~ }|*3
+ abc{30:dΣ}ab{30:cd}e^f |
+ {1:~ }|*3
|
]])
end)