diff options
-rw-r--r-- | test/functional/legacy/scroll_opt_spec.lua | 47 | ||||
-rw-r--r-- | test/old/testdir/test_scroll_opt.vim | 6 |
2 files changed, 26 insertions, 27 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua index 165570e7ec..ae6a409762 100644 --- a/test/functional/legacy/scroll_opt_spec.lua +++ b/test/functional/legacy/scroll_opt_spec.lua @@ -941,16 +941,17 @@ describe('smoothscroll', function() -- oldtest: Test_smoothscroll_zero_width_scroll_cursor_bot() it('does not divide by zero in zero-width window', function() - screen:try_resize(12, 19) + screen:try_resize(40, 19) screen:set_default_attr_ids({ [1] = {foreground = Screen.colors.Brown}; -- LineNr - [2] = {bold = true, reverse = true}; -- StatusLine - [3] = {reverse = true}; -- StatusLineNC + [2] = {bold = true, foreground = Screen.colors.Blue}; -- NonText + [3] = {bold = true, reverse = true}; -- StatusLine + [4] = {reverse = true}; -- StatusLineNC }) exec([[ silent normal yy silent normal 19p - winsize 0 19 + set cpoptions+=n vsplit vertical resize 0 set foldcolumn=1 @@ -959,25 +960,25 @@ describe('smoothscroll', function() silent normal 20G ]]) screen:expect([[ - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1: }│ | - {1:^ }│ | - {2:< }{3:<ame] [+] }| - | + {1: }│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:@}│ | + {2:^@}│ | + {3:< }{4:[No Name] [+] }| + | ]]) end) diff --git a/test/old/testdir/test_scroll_opt.vim b/test/old/testdir/test_scroll_opt.vim index 700cc92805..f60c0ddb59 100644 --- a/test/old/testdir/test_scroll_opt.vim +++ b/test/old/testdir/test_scroll_opt.vim @@ -843,7 +843,7 @@ func Test_smoothscroll_zero_width_scroll_cursor_bot() let lines =<< trim END silent normal yy silent normal 19p - winsize 0 19 + set cpoptions+=n vsplit vertical resize 0 set foldcolumn=1 @@ -852,9 +852,7 @@ func Test_smoothscroll_zero_width_scroll_cursor_bot() silent normal 20G END call writefile(lines, 'XSmoothScrollZeroBot', 'D') - let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19, wait_for_ruler: 0}) - call TermWait(buf, 1000) - + let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19}) call VerifyScreenDump(buf, 'Test_smoothscroll_zero_bot', {}) call StopVimInTerminal(buf) |