aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-04 19:03:01 -0700
committerJustin M. Keyes <justinkz@gmail.com>2019-09-04 19:03:01 -0700
commitdd18cc4b403b0a8b3445f09cc9044cf82d8c503e (patch)
tree88d10c93fbbf1060e591bb5b0e60ca2c7aaa2389
parent93deb1a062bd22d62f2003284f4e38abc8422a29 (diff)
downloadrneovim-dd18cc4b403b0a8b3445f09cc9044cf82d8c503e.tar.gz
rneovim-dd18cc4b403b0a8b3445f09cc9044cf82d8c503e.tar.bz2
rneovim-dd18cc4b403b0a8b3445f09cc9044cf82d8c503e.zip
fixup! test/wildmode_spec: fix flaky test
-rw-r--r--test/functional/ui/wildmode_spec.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua
index 36f8dd8bfb..f3fa711fb1 100644
--- a/test/functional/ui/wildmode_spec.lua
+++ b/test/functional/ui/wildmode_spec.lua
@@ -1,6 +1,5 @@
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
-local shallowcopy = helpers.shallowcopy
local clear, feed, command = helpers.clear, helpers.feed, helpers.command
local iswin = helpers.iswin
local funcs = helpers.funcs
@@ -81,13 +80,19 @@ describe("'wildmenu'", function()
feed([[:sign <Tab>]]) -- Invoke wildmenu.
-- NB: in earlier versions terminal output was redrawn during cmdline mode.
-- For now just assert that the screen remains unchanged.
- screen:expect{any='define jump list > '}
+ screen:expect{any='define jump list > |\n:sign define^ |'}
screen:expect_unchanged()
-- cmdline CTRL-D display should also be preserved.
feed([[<C-U>]])
feed([[sign <C-D>]]) -- Invoke cmdline CTRL-D.
- screen:expect{any='define place '}
+ screen:expect{grid=[[
+ :sign |
+ define place |
+ jump undefine |
+ list unplace |
+ :sign ^ |
+ ]]}
screen:expect_unchanged()
-- Exiting cmdline should show the buffer.