diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-06-26 14:49:15 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-10-15 20:13:11 +0200 |
commit | c8810a51a3a7ef1185b45c07d93f7e6769c5ab55 (patch) | |
tree | 55e62aa6c09a729c9c34bd5d4d4d40321f982376 /test/functional/ui/screen_basic_spec.lua | |
parent | 8fd092f3ff15bf70f84ec0d716c5aaa2c7379fa1 (diff) | |
download | rneovim-c8810a51a3a7ef1185b45c07d93f7e6769c5ab55.tar.gz rneovim-c8810a51a3a7ef1185b45c07d93f7e6769c5ab55.tar.bz2 rneovim-c8810a51a3a7ef1185b45c07d93f7e6769c5ab55.zip |
tests: improve robustness of immediate successes in screen tests
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r-- | test/functional/ui/screen_basic_spec.lua | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua index 31825bdbf4..3e930b0ae7 100644 --- a/test/functional/ui/screen_basic_spec.lua +++ b/test/functional/ui/screen_basic_spec.lua @@ -394,7 +394,7 @@ local function screen_tests(linegrid) end) it('redraws properly with :tab split right after scroll', function() - feed('30Ofoo<esc>gg') + feed('15Ofoo<esc>15Obar<esc>gg') command('vsplit') screen:expect([[ @@ -420,18 +420,17 @@ local function screen_tests(linegrid) foo {3:│}foo | foo {3:│}foo | foo {3:│}foo | - foo {3:│}foo | - foo {3:│}foo | - foo {3:│}foo | - foo {3:│}foo | - foo {3:│}foo | - foo {3:│}foo | - foo {3:│}foo | - foo {3:│}foo | + bar {3:│}foo | + bar {3:│}foo | + bar {3:│}foo | + bar {3:│}foo | + bar {3:│}foo | + bar {3:│}foo | + bar {3:│}foo | + bar {3:│}foo | {1:[No Name] [+] }{3:[No Name] [+] }| | ]]) - command('tab split') screen:expect([[ {4: }{5:2}{4:+ [No Name] }{2: + [No Name] }{3: }{4:X}| @@ -439,14 +438,14 @@ local function screen_tests(linegrid) foo | foo | foo | - foo | - foo | - foo | - foo | - foo | - foo | - foo | - foo | + bar | + bar | + bar | + bar | + bar | + bar | + bar | + bar | | ]]) end) |