aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/thread_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-08-14 19:38:49 +0200
committerGitHub <noreply@github.com>2024-08-14 19:38:49 +0200
commit32d17cb6d23248ec50286df8a2dfd0e5c0f28f3b (patch)
tree2bf58c80044d309178278aaec993c802370fa78c /test/functional/lua/thread_spec.lua
parent6bcefad5a671faab202d5359752b75c6619b9e28 (diff)
parentef4c9b136e0a41ca4a4740688fa0956c2ccbfb2e (diff)
downloadrneovim-32d17cb6d23248ec50286df8a2dfd0e5c0f28f3b.tar.gz
rneovim-32d17cb6d23248ec50286df8a2dfd0e5c0f28f3b.tar.bz2
rneovim-32d17cb6d23248ec50286df8a2dfd0e5c0f28f3b.zip
Merge pull request #30045 from bfredl/nodefault5
refactor(tests): again yet more global highlight definitions
Diffstat (limited to 'test/functional/lua/thread_spec.lua')
-rw-r--r--test/functional/lua/thread_spec.lua38
1 files changed, 12 insertions, 26 deletions
diff --git a/test/functional/lua/thread_spec.lua b/test/functional/lua/thread_spec.lua
index 780057b580..cbf23517dc 100644
--- a/test/functional/lua/thread_spec.lua
+++ b/test/functional/lua/thread_spec.lua
@@ -18,13 +18,6 @@ describe('thread', function()
clear()
screen = Screen.new(50, 10)
screen:attach()
- screen:set_default_attr_ids({
- [1] = { bold = true, foreground = Screen.colors.Blue1 },
- [2] = { bold = true, reverse = true },
- [3] = { foreground = Screen.colors.Grey100, background = Screen.colors.Red },
- [4] = { bold = true, foreground = Screen.colors.SeaGreen4 },
- [5] = { bold = true },
- })
end)
it('entry func is executed in protected mode', function()
@@ -38,10 +31,10 @@ describe('thread', function()
screen:expect([[
|
{1:~ }|*5
- {2: }|
- {3:Error in luv thread:} |
- {3:[string "<nvim>"]:2: Error in thread entry func} |
- {4:Press ENTER or type command to continue}^ |
+ {3: }|
+ {9:Error in luv thread:} |
+ {9:[string "<nvim>"]:2: Error in thread entry func} |
+ {6:Press ENTER or type command to continue}^ |
]])
feed('<cr>')
assert_alive()
@@ -65,10 +58,10 @@ describe('thread', function()
screen:expect([[
|
{1:~ }|*5
- {2: }|
- {3:Error in luv callback, thread:} |
- {3:[string "<nvim>"]:6: Error in thread callback} |
- {4:Press ENTER or type command to continue}^ |
+ {3: }|
+ {9:Error in luv callback, thread:} |
+ {9:[string "<nvim>"]:6: Error in thread callback} |
+ {6:Press ENTER or type command to continue}^ |
]])
feed('<cr>')
assert_alive()
@@ -265,13 +258,6 @@ describe('threadpool', function()
it('with invalid return value', function()
local screen = Screen.new(50, 10)
screen:attach()
- screen:set_default_attr_ids({
- [1] = { bold = true, foreground = Screen.colors.Blue1 },
- [2] = { bold = true, reverse = true },
- [3] = { foreground = Screen.colors.Grey100, background = Screen.colors.Red },
- [4] = { bold = true, foreground = Screen.colors.SeaGreen4 },
- [5] = { bold = true },
- })
exec_lua [[
local work = vim.uv.new_work(function() return {} end, function() end)
@@ -281,10 +267,10 @@ describe('threadpool', function()
screen:expect([[
|
{1:~ }|*5
- {2: }|
- {3:Error in luv thread:} |
- {3:Error: thread arg not support type 'table' at 1} |
- {4:Press ENTER or type command to continue}^ |
+ {3: }|
+ {9:Error in luv thread:} |
+ {9:Error: thread arg not support type 'table' at 1} |
+ {6:Press ENTER or type command to continue}^ |
]])
end)