aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/ui_event_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r--test/functional/lua/ui_event_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua
index c8616e3e11..f1cf657d78 100644
--- a/test/functional/lua/ui_event_spec.lua
+++ b/test/functional/lua/ui_event_spec.lua
@@ -285,6 +285,26 @@ describe('vim.ui_attach', function()
},
},
})
+ feed('<esc>:call inputlist(["Select:", "One", "Two"])<cr>')
+ screen:expect({
+ grid = [[
+ E122: {10:Function} Foo already exists, add !|
+ to replace it |
+ Type number and <Enter> or click with th|
+ e mouse (q or empty cancels): |
+ {1:^~ }|
+ ]],
+ messages = {
+ {
+ content = { { 'Select:\nOne\nTwo\n' } },
+ kind = 'list_cmd',
+ },
+ {
+ content = { { 'Type number and <Enter> or click with the mouse (q or empty cancels): ' } },
+ kind = 'number_prompt',
+ },
+ },
+ })
end)
end)