aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/window_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-05-10 12:47:31 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2015-05-10 20:18:46 +0200
commit208013ae399a28d78587979fb35a01bd335a855c (patch)
treeccd77c0af2098eb892d4cdec235c5252ae054cb5 /test/functional/terminal/window_spec.lua
parent89d0e23624e7d69ea4f1aa973f7ce65775c6626b (diff)
downloadrneovim-208013ae399a28d78587979fb35a01bd335a855c.tar.gz
rneovim-208013ae399a28d78587979fb35a01bd335a855c.tar.bz2
rneovim-208013ae399a28d78587979fb35a01bd335a855c.zip
test/terminal: fix indeterminism in colorcolumn screen test
Previously, the screen test was expecting the screen state to be identical to the previous screen test in `thelpers.screen_setup()`, which is indeterministic. (The later screen test can accidentally still see the previous identical state). The solution is to add a test for a intermediate different state.
Diffstat (limited to 'test/functional/terminal/window_spec.lua')
-rw-r--r--test/functional/terminal/window_spec.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/functional/terminal/window_spec.lua b/test/functional/terminal/window_spec.lua
index 234950638e..c2b9390a11 100644
--- a/test/functional/terminal/window_spec.lua
+++ b/test/functional/terminal/window_spec.lua
@@ -14,8 +14,17 @@ describe('terminal window', function()
describe('with colorcolumn set', function()
before_each(function()
- feed('<c-\\><c-n>:set colorcolumn=20<cr>i')
- wait()
+ feed('<c-\\><c-n>')
+ screen:expect([[
+ tty ready |
+ {2: } |
+ |
+ |
+ |
+ ^ |
+ |
+ ]])
+ feed(':set colorcolumn=20<cr>i')
end)
it('wont show the color column', function()