aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/spell_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ui/spell_spec.lua')
-rw-r--r--test/functional/ui/spell_spec.lua34
1 files changed, 18 insertions, 16 deletions
diff --git a/test/functional/ui/spell_spec.lua b/test/functional/ui/spell_spec.lua
index cc39790dca..13c3b24cc1 100644
--- a/test/functional/ui/spell_spec.lua
+++ b/test/functional/ui/spell_spec.lua
@@ -17,23 +17,26 @@ describe("'spell'", function()
clear()
screen = Screen.new(80, 8)
screen:attach()
- screen:set_default_attr_ids( {
- [0] = {bold=true, foreground=Screen.colors.Blue},
- [1] = {special = Screen.colors.Red, undercurl = true},
- [2] = {special = Screen.colors.Blue, undercurl = true},
- [3] = {foreground = tonumber('0x6a0dad')},
- [4] = {foreground = Screen.colors.Magenta},
- [5] = {bold = true, foreground = Screen.colors.SeaGreen},
- [6] = {foreground = Screen.colors.Red},
- [7] = {foreground = Screen.colors.Blue},
- [8] = {foreground = Screen.colors.Blue, special = Screen.colors.Red, undercurl = true},
- [9] = {bold = true},
- [10] = {background = Screen.colors.LightGrey, foreground = Screen.colors.DarkBlue},
+ screen:set_default_attr_ids({
+ [0] = { bold = true, foreground = Screen.colors.Blue },
+ [1] = { special = Screen.colors.Red, undercurl = true },
+ [2] = { special = Screen.colors.Blue, undercurl = true },
+ [3] = { foreground = tonumber('0x6a0dad') },
+ [4] = { foreground = Screen.colors.Magenta },
+ [5] = { bold = true, foreground = Screen.colors.SeaGreen },
+ [6] = { foreground = Screen.colors.Red },
+ [7] = { foreground = Screen.colors.Blue },
+ [8] = { foreground = Screen.colors.Blue, special = Screen.colors.Red, undercurl = true },
+ [9] = { bold = true },
+ [10] = { background = Screen.colors.LightGrey, foreground = Screen.colors.DarkBlue },
})
end)
it('joins long lines #7937', function()
- if is_os('openbsd') then pending('FIXME #12104', function() end) return end
+ if is_os('openbsd') then
+ pending('FIXME #12104', function() end)
+ return
+ end
exec('set spell')
insert([[
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
@@ -54,7 +57,6 @@ describe("'spell'", function()
{0:~ }|
|
]])
-
end)
-- oldtest: Test_spell_screendump()
@@ -258,7 +260,7 @@ describe("'spell'", function()
{6:search hit BOTTOM, continuing at TOP} |
]])
exec('echo ""')
- local ns = meths.create_namespace("spell")
+ local ns = meths.create_namespace('spell')
-- extmark with spell=true enables spell
local id = curbufmeths.set_extmark(ns, 1, 4, { end_row = 1, end_col = 10, spell = true })
screen:expect([[
@@ -366,7 +368,7 @@ describe("'spell'", function()
syntax match Constant "^.*$"
call setline(1, "This is some text without any spell errors.")
]])
- local ns = meths.create_namespace("spell")
+ local ns = meths.create_namespace('spell')
curbufmeths.set_extmark(ns, 0, 0, { hl_group = 'WarningMsg', end_col = 43 })
screen:expect([[
{6:^This is some text without any spell errors.}|