aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/highlight_spec.lua
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-01-19 23:18:21 +0000
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-01-24 11:27:50 +0000
commitf3039ce531f49a63f8fd07317c1f957fb28fc6a7 (patch)
treeb9a8cd3eb625d33eca1752a7ba8102cd8613f4e7 /test/functional/api/highlight_spec.lua
parentf5d357de553c1aa61cdb25b047f984f6414b1967 (diff)
downloadrneovim-f3039ce531f49a63f8fd07317c1f957fb28fc6a7.tar.gz
rneovim-f3039ce531f49a63f8fd07317c1f957fb28fc6a7.tar.bz2
rneovim-f3039ce531f49a63f8fd07317c1f957fb28fc6a7.zip
feat(highlight): define the concept of altfont as a (c)term rendering attribute
Diffstat (limited to 'test/functional/api/highlight_spec.lua')
-rw-r--r--test/functional/api/highlight_spec.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/api/highlight_spec.lua b/test/functional/api/highlight_spec.lua
index 8510eb6094..5941d4c68b 100644
--- a/test/functional/api/highlight_spec.lua
+++ b/test/functional/api/highlight_spec.lua
@@ -33,6 +33,7 @@ describe('API: highlight',function()
reverse = true,
underline = true,
strikethrough = true,
+ altfont = true,
nocombine = true,
}
local expected_undercurl = {
@@ -61,7 +62,7 @@ describe('API: highlight',function()
eq('Invalid highlight id: 30000', string.match(emsg, 'Invalid.*'))
-- Test all highlight properties.
- command('hi NewHighlight gui=underline,bold,italic,reverse,strikethrough,nocombine')
+ command('hi NewHighlight gui=underline,bold,italic,reverse,strikethrough,altfont,nocombine')
eq(expected_rgb2, nvim("get_hl_by_id", hl_id, true))
-- Test undercurl
@@ -215,10 +216,12 @@ describe("API: set highlight", function()
reverse = true,
underline = true,
strikethrough = true,
+ altfont = true,
cterm = {
italic = true,
reverse = true,
strikethrough = true,
+ altfont = true,
nocombine = true,
}
}
@@ -230,6 +233,7 @@ describe("API: set highlight", function()
reverse = true,
underline = true,
strikethrough = true,
+ altfont = true,
}
local highlight3_result_cterm = {
background = highlight_color.ctermbg,
@@ -237,6 +241,7 @@ describe("API: set highlight", function()
italic = true,
reverse = true,
strikethrough = true,
+ altfont = true,
nocombine = true,
}
@@ -292,7 +297,7 @@ describe("API: set highlight", function()
exec_capture('highlight Test_hl'))
meths.set_hl(0, 'Test_hl2', highlight3_config)
- eq('Test_hl2 xxx cterm=italic,reverse,strikethrough,nocombine ctermfg=8 ctermbg=15 gui=bold,underline,italic,reverse,strikethrough guifg=#ff0000 guibg=#0032aa',
+ eq('Test_hl2 xxx cterm=italic,reverse,strikethrough,altfont,nocombine ctermfg=8 ctermbg=15 gui=bold,underline,italic,reverse,strikethrough,altfont guifg=#ff0000 guibg=#0032aa',
exec_capture('highlight Test_hl2'))
-- Colors are stored with the name they are defined, but