aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/executable_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-07-20 14:01:33 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-07-20 14:25:07 +0200
commit6b45e12d67ec01c8a7c5896529df88b9105d5c2b (patch)
treec8f63b0447a08a34ce49d3fddf1b1230862fc044 /test/functional/eval/executable_spec.lua
parent643ba06d4d4373d2d3f8936f71f777f627fad5f6 (diff)
downloadrneovim-6b45e12d67ec01c8a7c5896529df88b9105d5c2b.tar.gz
rneovim-6b45e12d67ec01c8a7c5896529df88b9105d5c2b.tar.bz2
rneovim-6b45e12d67ec01c8a7c5896529df88b9105d5c2b.zip
screen.lua: expect_unchanged(), get_snapshot()
Factor `get_snapshot()` out of `print_snapshot()`, so that callers can get a table (for use with `expect()`) instead of the string form. Try to use this to fix indeterminism in `searchhl_spec.lua`. - Since the screen state is collected by `screen:expect_unchanged()`, we don't need a deterministic initial state (which would then be hardcoded into the test). This allows us to check "did anything change in the last N ms?" rather than "did anything change compared to a hardcoded screen-state?" - This may end up fruitless, because `expect_unchanged()` depends on timing to wait for an initial "current state".
Diffstat (limited to 'test/functional/eval/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions