Mercurial > vim
comparison src/testdir/test_breakindent.vim @ 30630:218363931f5d v9.0.0650
patch 9.0.0650: some tests are failing
Commit: https://github.com/vim/vim/commit/0466d398a550623126fba3a2a08208a798b28bda
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 3 17:07:34 2022 +0100
patch 9.0.0650: some tests are failing
Problem: Some tests are failing.
Solution: Adjust for "<<<" showing up.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 Oct 2022 18:15:04 +0200 |
parents | ba5ca7c7d44c |
children | 60c61efcabce |
comparison
equal
deleted
inserted
replaced
30629:49cdb6800d6f | 30630:218363931f5d |
---|---|
81 | 81 |
82 func Test_breakindent02_vartabs() | 82 func Test_breakindent02_vartabs() |
83 CheckFeature vartabs | 83 CheckFeature vartabs |
84 " simple breakindent test with showbreak set | 84 " simple breakindent test with showbreak set |
85 call s:test_windows('setl briopt=min:0 sbr=>> vts=4') | 85 call s:test_windows('setl briopt=min:0 sbr=>> vts=4') |
86 let lines = s:screen_lines(line('.'),8) | 86 let lines = s:screen_lines(line('.'), 8) |
87 let expect = [ | 87 let expect = [ |
88 \ " abcd", | 88 \ " abcd", |
89 \ " >>qr", | 89 \ " >>qr", |
90 \ " >>EF", | 90 \ " >>EF", |
91 \ ] | 91 \ ] |
94 endfunc | 94 endfunc |
95 | 95 |
96 func Test_breakindent03() | 96 func Test_breakindent03() |
97 " simple breakindent test with showbreak set and briopt including sbr | 97 " simple breakindent test with showbreak set and briopt including sbr |
98 call s:test_windows('setl briopt=sbr,min:0 sbr=++') | 98 call s:test_windows('setl briopt=sbr,min:0 sbr=++') |
99 let lines = s:screen_lines(line('.'),8) | 99 let lines = s:screen_lines(line('.'), 8) |
100 let expect = [ | 100 let expect = [ |
101 \ " abcd", | 101 \ " abcd", |
102 \ "++ qrst", | 102 \ "++ qrst", |
103 \ "++ GHIJ", | 103 \ "++ GHIJ", |
104 \ ] | 104 \ ] |
109 | 109 |
110 func Test_breakindent03_vartabs() | 110 func Test_breakindent03_vartabs() |
111 " simple breakindent test with showbreak set and briopt including sbr | 111 " simple breakindent test with showbreak set and briopt including sbr |
112 CheckFeature vartabs | 112 CheckFeature vartabs |
113 call s:test_windows('setl briopt=sbr,min:0 sbr=++ vts=4') | 113 call s:test_windows('setl briopt=sbr,min:0 sbr=++ vts=4') |
114 let lines = s:screen_lines(line('.'),8) | 114 let lines = s:screen_lines(line('.'), 8) |
115 let expect = [ | 115 let expect = [ |
116 \ " abcd", | 116 \ " abcd", |
117 \ "++ qrst", | 117 \ "++ qrst", |
118 \ "++ GHIJ", | 118 \ "++ GHIJ", |
119 \ ] | 119 \ ] |
124 | 124 |
125 func Test_breakindent04() | 125 func Test_breakindent04() |
126 " breakindent set with min width 18 | 126 " breakindent set with min width 18 |
127 set sbr=<<< | 127 set sbr=<<< |
128 call s:test_windows('setl sbr=NONE briopt=min:18') | 128 call s:test_windows('setl sbr=NONE briopt=min:18') |
129 let lines = s:screen_lines(line('.'),8) | 129 let lines = s:screen_lines(line('.'), 8) |
130 let expect = [ | 130 let expect = [ |
131 \ " abcd", | 131 \ " abcd", |
132 \ " qrstuv", | 132 \ " qrstuv", |
133 \ " IJKLMN", | 133 \ " IJKLMN", |
134 \ ] | 134 \ ] |
140 | 140 |
141 func Test_breakindent04_vartabs() | 141 func Test_breakindent04_vartabs() |
142 " breakindent set with min width 18 | 142 " breakindent set with min width 18 |
143 CheckFeature vartabs | 143 CheckFeature vartabs |
144 call s:test_windows('setl sbr= briopt=min:18 vts=4') | 144 call s:test_windows('setl sbr= briopt=min:18 vts=4') |
145 let lines = s:screen_lines(line('.'),8) | 145 let lines = s:screen_lines(line('.'), 8) |
146 let expect = [ | 146 let expect = [ |
147 \ " abcd", | 147 \ " abcd", |
148 \ " qrstuv", | 148 \ " qrstuv", |
149 \ " IJKLMN", | 149 \ " IJKLMN", |
150 \ ] | 150 \ ] |
547 resize 6 | 547 resize 6 |
548 norm! 1gg$ | 548 norm! 1gg$ |
549 redraw! | 549 redraw! |
550 let lines = s:screen_lines(1,10) | 550 let lines = s:screen_lines(1,10) |
551 let expect = [ | 551 let expect = [ |
552 \ " 789012", | 552 \ "<<< 789012", |
553 \ " 345678", | 553 \ " 345678", |
554 \ " 901234", | 554 \ " 901234", |
555 \ ] | 555 \ ] |
556 call s:compare_lines(expect, lines) | 556 call s:compare_lines(expect, lines) |
557 let lines = s:screen_lines(4,10) | 557 let lines = s:screen_lines(4,10) |
573 resize 6 | 573 resize 6 |
574 norm! 1gg$ | 574 norm! 1gg$ |
575 redraw! | 575 redraw! |
576 let lines = s:screen_lines(1,10) | 576 let lines = s:screen_lines(1,10) |
577 let expect = [ | 577 let expect = [ |
578 \ " 789012", | 578 \ "<<< 789012", |
579 \ " 345678", | 579 \ " 345678", |
580 \ " 901234", | 580 \ " 901234", |
581 \ ] | 581 \ ] |
582 call s:compare_lines(expect, lines) | 582 call s:compare_lines(expect, lines) |
583 let lines = s:screen_lines(4,10) | 583 let lines = s:screen_lines(4,10) |
658 | 658 |
659 setl breakindent briopt=min:18 sbr=> | 659 setl breakindent briopt=min:18 sbr=> |
660 norm! 5gj | 660 norm! 5gj |
661 let lines = s:screen_lines(1, 20) | 661 let lines = s:screen_lines(1, 20) |
662 let expect = [ | 662 let expect = [ |
663 \ ">aaaaaaaaaaaaaaaaaaa", | 663 \ "<<<aaaaaaaaaaaaaaaaa", |
664 \ ">aaaaaaaaaaaaaaaaaaa", | 664 \ ">aaaaaaaaaaaaaaaaaaa", |
665 \ ">aaaaaaaaaaaaaaaaaaa", | 665 \ ">aaaaaaaaaaaaaaaaaaa", |
666 \ ] | 666 \ ] |
667 call s:compare_lines(expect, lines) | 667 call s:compare_lines(expect, lines) |
668 call s:close_windows('set breakindent& briopt& sbr&') | 668 call s:close_windows('set breakindent& briopt& sbr&') |
685 setl scrolloff=5 | 685 setl scrolloff=5 |
686 norm! 5gj | 686 norm! 5gj |
687 redraw! | 687 redraw! |
688 let lines = s:screen_lines(1, 20) | 688 let lines = s:screen_lines(1, 20) |
689 let expect = [ | 689 let expect = [ |
690 \ "--1 aaaaaaaaaaaaaaaa", | 690 \ "<<< aaaaaaaaaaaaaaaa", |
691 \ " aaaaaaaaaaaaaaaa", | 691 \ " aaaaaaaaaaaaaaaa", |
692 \ " aaaaaaaaaaaaaaaa", | 692 \ " aaaaaaaaaaaaaaaa", |
693 \ ] | 693 \ ] |
694 call s:compare_lines(expect, lines) | 694 call s:compare_lines(expect, lines) |
695 | 695 |
704 call s:compare_lines(expect, lines) | 704 call s:compare_lines(expect, lines) |
705 " Scroll down one screen line | 705 " Scroll down one screen line |
706 norm! 5gj | 706 norm! 5gj |
707 let lines = s:screen_lines(1, 20) | 707 let lines = s:screen_lines(1, 20) |
708 let expect = [ | 708 let expect = [ |
709 \ "--1 aaaaaaaaaaaaaa", | 709 \ "<<< aaaaaaaaaaaaaa", |
710 \ " aaaaaaaaaaaaaa", | 710 \ " aaaaaaaaaaaaaa", |
711 \ " aaaaaaaaaaaaaa", | 711 \ " aaaaaaaaaaaaaa", |
712 \ ] | 712 \ ] |
713 call s:compare_lines(expect, lines) | 713 call s:compare_lines(expect, lines) |
714 | 714 |