diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-10 11:46:26 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-10 11:46:26 +0200 |
commit | 0062c65ba8eec61df80caa99de7ed148e863fbdb (patch) | |
tree | aefe07bc098a7cc8daaba5fa84ee1f5ee9a3e005 /test/functional/ui/cmdline_spec.lua | |
parent | 396a3945c4eba733b3a99a7ded217af83a400791 (diff) | |
download | rneovim-0062c65ba8eec61df80caa99de7ed148e863fbdb.tar.gz rneovim-0062c65ba8eec61df80caa99de7ed148e863fbdb.tar.bz2 rneovim-0062c65ba8eec61df80caa99de7ed148e863fbdb.zip |
test/cmdline_spec: adjust "no-op"
(<Cmd>0<cr> is not really a no-op, it moves the cursor.)
Attempt to avoid flaky test:
test/functional/ui/cmdline_spec.lua @ 830
Failure message: ./test/functional/ui/screen.lua:579: Row 2 did not match.
Expected:
| |
|*{1:~ }|
|{3: }|
|:012345678901234567890123|
|456789^ |
Actual:
| |
|*{3: }|
|:012345678901234567890123|
|:012345678901234567890123|
|456789^ |
./test/functional/ui/screen.lua:579: in function '_wait'
./test/functional/ui/screen.lua:367: in function 'expect'
test/functional/ui/cmdline_spec.lua:841: in function <test/functional/ui/cmdline_spec.lua:830>
ref https://github.com/neovim/neovim/pull/10171#issuecomment-520134344
ref #10171
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua index c63b726308..1c4d5a5c6b 100644 --- a/test/functional/ui/cmdline_spec.lua +++ b/test/functional/ui/cmdline_spec.lua @@ -828,7 +828,7 @@ describe('cmdline redraw', function() end) it('with <Cmd>', function() - command('cmap a <Cmd>0<CR>') -- no-op + command('cmap a <Cmd>call sin(0)<CR>') -- no-op feed(':012345678901234567890123456789') screen:expect{grid=[[ | |