aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/terminal/tui_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 3e0b907ea2..50199bd83d 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -1968,9 +1968,9 @@ describe('TUI', function()
if not req then
return
end
- local url = req:match('\027]8;;(.*)$')
- if url ~= nil then
- table.insert(_G.urls, url)
+ local id, url = req:match('\027]8;id=(%d+);(.*)$')
+ if id ~= nil and url ~= nil then
+ table.insert(_G.urls, { id = tonumber(id), url = url })
end
end,
})
@@ -1984,7 +1984,7 @@ describe('TUI', function()
})
]])
retry(nil, 1000, function()
- eq({ 'https://example.com', '' }, exec_lua([[return _G.urls]]))
+ eq({ { id = 0xE1EA0000, url = 'https://example.com' } }, exec_lua([[return _G.urls]]))
end)
end)
end)