diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-04 13:21:35 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-26 19:55:33 +0100 |
commit | fbaee922d1182f7bd7b43ddce7cf983b41021d14 (patch) | |
tree | 1b9aac36323812c9f9884928532ef53c50030dc6 /test/functional/ui/screen.lua | |
parent | 2d50bf349883958bff1bb584fb3ad5cb97990993 (diff) | |
download | rneovim-fbaee922d1182f7bd7b43ddce7cf983b41021d14.tar.gz rneovim-fbaee922d1182f7bd7b43ddce7cf983b41021d14.tar.bz2 rneovim-fbaee922d1182f7bd7b43ddce7cf983b41021d14.zip |
doc [ci skip]
closes #9719
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index d072444ee1..983a2f3d40 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -259,22 +259,19 @@ local ext_keys = { 'messages', 'showmode', 'showcmd', 'ruler', 'float_pos', } --- Asserts that the screen state eventually matches an expected state +-- Asserts that the screen state eventually matches an expected state. -- --- This function can either be called with the positional forms --- --- screen:expect(grid, [attr_ids, attr_ignore]) --- screen:expect(condition) --- --- or to use additional arguments (or grid and condition at the same time) --- the keyword form has to be used: --- --- screen:expect{grid=[[...]], cmdline={...}, condition=function() ... end} +-- Can be called with positional args: +-- screen:expect(grid, [attr_ids, attr_ignore]) +-- screen:expect(condition) +-- or keyword args (supports more options): +-- screen:expect{grid=[[...]], cmdline={...}, condition=function() ... end} -- -- -- grid: Expected screen state (string). Each line represents a screen -- row. Last character of each row (typically "|") is stripped. -- Common indentation is stripped. +-- Lines containing only "{IGNORE}|" are skipped. -- attr_ids: Expected text attributes. Screen rows are transformed according -- to this table, as follows: each substring S composed of -- characters having the same attributes will be substituted by |