aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/highlight_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-30 16:57:44 +0800
committerGitHub <noreply@github.com>2022-06-30 16:57:44 +0800
commit995e4879153d0f4ea72dff446c175754a1873425 (patch)
treec53b77a422ab65860ccb15c9020a89f89b68c37d /test/functional/api/highlight_spec.lua
parent6f6286e4f90da25a7d1b6bcc96b79b0ccbaf5c26 (diff)
downloadrneovim-995e4879153d0f4ea72dff446c175754a1873425.tar.gz
rneovim-995e4879153d0f4ea72dff446c175754a1873425.tar.bz2
rneovim-995e4879153d0f4ea72dff446c175754a1873425.zip
refactor(highlight)!: rename attributes to match Vim (#19159)
Ref: https://github.com/vim/vim/commit/84f546363068e4ddfe14a8a2a2322bb8d3a25417 Rename: - `underlineline` to `underdouble` - `underdot` to `underdotted` - `underdash` to `underdashed` `underdouble` also now takes higher precedence than `undercurl`.
Diffstat (limited to 'test/functional/api/highlight_spec.lua')
-rw-r--r--test/functional/api/highlight_spec.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/functional/api/highlight_spec.lua b/test/functional/api/highlight_spec.lua
index c57c1b12dc..933103046c 100644
--- a/test/functional/api/highlight_spec.lua
+++ b/test/functional/api/highlight_spec.lua
@@ -29,10 +29,10 @@ describe('API: highlight',function()
italic = true,
reverse = true,
underline = true,
- underlineline = true,
undercurl = true,
- underdot = true,
- underdash = true,
+ underdouble = true,
+ underdotted = true,
+ underdashed = true,
strikethrough = true,
}
@@ -55,7 +55,7 @@ describe('API: highlight',function()
eq('Invalid highlight id: 30000', string.match(emsg, 'Invalid.*'))
-- Test all highlight properties.
- command('hi NewHighlight gui=underline,bold,underlineline,undercurl,underdot,underdash,italic,reverse,strikethrough')
+ command('hi NewHighlight gui=underline,bold,undercurl,underdouble,underdotted,underdashed,italic,reverse,strikethrough')
eq(expected_rgb2, nvim("get_hl_by_id", hl_id, true))
-- Test nil argument.
@@ -205,9 +205,9 @@ describe("API: set highlight", function()
reverse = true,
undercurl = true,
underline = true,
- underdash = true,
- underdot = true,
- underlineline = true,
+ underdashed = true,
+ underdotted = true,
+ underdouble = true,
strikethrough = true,
cterm = {
italic = true,
@@ -224,9 +224,9 @@ describe("API: set highlight", function()
reverse = true,
undercurl = true,
underline = true,
- underdash = true,
- underdot = true,
- underlineline = true,
+ underdashed = true,
+ underdotted = true,
+ underdouble = true,
strikethrough = true,
}
local highlight3_result_cterm = {
@@ -290,7 +290,7 @@ describe("API: set highlight", function()
exec_capture('highlight Test_hl'))
meths.set_hl(0, 'Test_hl2', highlight3_config)
- eq('Test_hl2 xxx cterm=undercurl,italic,reverse,strikethrough ctermfg=8 ctermbg=15 gui=bold,underline,underlineline,undercurl,underdot,underdash,italic,reverse,strikethrough guifg=#ff0000 guibg=#0032aa',
+ eq('Test_hl2 xxx cterm=undercurl,italic,reverse,strikethrough ctermfg=8 ctermbg=15 gui=bold,underline,undercurl,underdouble,underdotted,underdashed,italic,reverse,strikethrough guifg=#ff0000 guibg=#0032aa',
exec_capture('highlight Test_hl2'))
-- Colors are stored with the name they are defined, but