aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/hl_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-01-23 08:11:53 +0800
committerGitHub <noreply@github.com>2025-01-23 08:11:53 +0800
commitfd55c7df6f7eb61c65e93c6dd8beffaeed93d2ed (patch)
tree4c44f351ce691caabcfc5346cc5119bef7062715 /test/functional/lua/hl_spec.lua
parentaf0ef2ac9dd19b7c4005a3197334d3e7d554646c (diff)
downloadrneovim-fd55c7df6f7eb61c65e93c6dd8beffaeed93d2ed.tar.gz
rneovim-fd55c7df6f7eb61c65e93c6dd8beffaeed93d2ed.tar.bz2
rneovim-fd55c7df6f7eb61c65e93c6dd8beffaeed93d2ed.zip
test(lua/hl_spec): set timeout for transient state (#32169)
Diffstat (limited to 'test/functional/lua/hl_spec.lua')
-rw-r--r--test/functional/lua/hl_spec.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/functional/lua/hl_spec.lua b/test/functional/lua/hl_spec.lua
index aed37cc294..512f6be48f 100644
--- a/test/functional/lua/hl_spec.lua
+++ b/test/functional/lua/hl_spec.lua
@@ -106,19 +106,22 @@ describe('vim.hl.range', function()
end)
it('removes highlight after given `timeout`', function()
- local timeout = 50
+ local timeout = 100
exec_lua(function()
local ns = vim.api.nvim_create_namespace('')
vim.hl.range(0, ns, 'Search', { 0, 0 }, { 4, 0 }, { timeout = timeout })
end)
- screen:expect([[
+ screen:expect({
+ grid = [[
{10:^asdfghjkl}{100:$} |
{10:«口=口»}{100:$} |
{10:qwertyuiop}{100:$} |
{10:口口=口口}{1:$} |
zxcvbnm{1:$} |
|
- ]])
+ ]],
+ timeout = timeout,
+ })
screen:expect([[
^asdfghjkl{1:$} |
«口=口»{1:$} |