aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/execute_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-10-15 22:16:17 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-10-15 22:16:48 +0200
commit97caabc49a4fa73e9f12fd5c910c1ba67292ba62 (patch)
tree84503535cbf49568f33ef2c624dd9ccb6641bbba /test/functional/eval/execute_spec.lua
parent3a2903c83607e44677cab1dd8a4837e0022d41db (diff)
downloadrneovim-97caabc49a4fa73e9f12fd5c910c1ba67292ba62.tar.gz
rneovim-97caabc49a4fa73e9f12fd5c910c1ba67292ba62.tar.bz2
rneovim-97caabc49a4fa73e9f12fd5c910c1ba67292ba62.zip
test: execute_spec: Adjust screen assertion.
The previous form was passing because it happens immediately before this form; but on a very fast(?) server the screen check might miss that form. It's also not really want we want to assert anyways.
Diffstat (limited to 'test/functional/eval/execute_spec.lua')
-rw-r--r--test/functional/eval/execute_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/eval/execute_spec.lua b/test/functional/eval/execute_spec.lua
index 10a6de6eb4..b5b481435a 100644
--- a/test/functional/eval/execute_spec.lua
+++ b/test/functional/eval/execute_spec.lua
@@ -70,16 +70,16 @@ describe('execute()', function()
end)
it('silences command run inside', function()
- local screen = Screen.new(20, 5)
+ local screen = Screen.new(40, 5)
screen:attach()
screen:set_default_attr_ids( {[0] = {bold=true, foreground=255}} )
feed(':let g:mes = execute("echon 42")<CR>')
screen:expect([[
- ^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- |
+ ^ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ :let g:mes = execute("echon 42") |
]])
eq('42', eval('g:mes'))
end)