aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-04-26 23:36:59 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-05-02 13:11:47 +0200
commit223c7173eea2a4abec75611bd70051ea0b4c5d20 (patch)
tree8912dab1c9131fc9b83b3683b8e09399ed67b87c /test
parente8dfff5f288f5fcf4a11d62e973080600f05c980 (diff)
downloadrneovim-223c7173eea2a4abec75611bd70051ea0b4c5d20.tar.gz
rneovim-223c7173eea2a4abec75611bd70051ea0b4c5d20.tar.bz2
rneovim-223c7173eea2a4abec75611bd70051ea0b4c5d20.zip
vim-patch:9.0.0746: breakindent test cases are commented out
Problem: Breakindent test cases are commented out. Solution: Adjust expected result to slightly different behavior. Correct computations for cursor position. https://github.com/vim/vim/commit/856c5d2bc7c3864f8b63a0ab3e376d5c5e51f1d5 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_breakindent.vim10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/old/testdir/test_breakindent.vim b/test/old/testdir/test_breakindent.vim
index 2317cb8568..f6c0e32adf 100644
--- a/test/old/testdir/test_breakindent.vim
+++ b/test/old/testdir/test_breakindent.vim
@@ -723,7 +723,7 @@ func Test_breakindent20_cpo_n_nextpage()
call s:compare_lines(expect, lines)
" Scroll down one screen line
setl scrolloff=5
- norm! 5gj
+ norm! 6gj
redraw!
let lines = s:screen_lines(1, 20)
let expect = [
@@ -731,8 +731,7 @@ func Test_breakindent20_cpo_n_nextpage()
\ " mnopqrstabcdefgh",
\ " ijklmnopqrstabcd",
\ ]
- " FIXME: this currently fails
- " call s:compare_lines(expect, lines)
+ call s:compare_lines(expect, lines)
setl briopt+=shift:2
norm! 1gg
@@ -744,15 +743,14 @@ func Test_breakindent20_cpo_n_nextpage()
\ ]
call s:compare_lines(expect, lines)
" Scroll down one screen line
- norm! 5gj
+ norm! 6gj
let lines = s:screen_lines(1, 20)
let expect = [
\ "<<< qrstabcdefghij",
\ " klmnopqrstabcd",
\ " efghijklmnopqr",
\ ]
- " FIXME: this currently fails
- " call s:compare_lines(expect, lines)
+ call s:compare_lines(expect, lines)
call s:close_windows('set breakindent& briopt& cpo& number&')
endfunc