comparison src/testdir/test_textprop.vim @ 31948:c8cfdbe7b7f2 v9.0.1306

patch 9.0.1306: no regression test for solved problem of #11959 Commit: https://github.com/vim/vim/commit/5ceb8157bc4608eeff4b7453da31ebe65f08a862 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 12 18:11:21 2023 +0000 patch 9.0.1306: no regression test for solved problem of https://github.com/vim/vim/issues/11959 Problem: No regression test for solved problem of https://github.com/vim/vim/issues/11959. Solution: Add a test, also with 'list' set. (closes https://github.com/vim/vim/issues/11959)
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Feb 2023 19:15:05 +0100
parents 87ed5e064db2
children e0e1ba7daaf4
comparison
equal deleted inserted replaced
31947:563b4f8f009e 31948:c8cfdbe7b7f2
2802 call VerifyScreenDump(buf, 'Test_prop_above_below_empty_2', {}) 2802 call VerifyScreenDump(buf, 'Test_prop_above_below_empty_2', {})
2803 2803
2804 call StopVimInTerminal(buf) 2804 call StopVimInTerminal(buf)
2805 endfunc 2805 endfunc
2806 2806
2807 func Test_prop_with_text_above_empty()
2808 CheckRunVimInTerminal
2809
2810 " check the cursor is in the correct line
2811 let lines =<< trim END
2812 setlocal number
2813 call setline(1, ['11111111', '', '333333333', '', '55555555555'])
2814
2815 let vt = 'test'
2816 call prop_type_add(vt, {'highlight': 'ToDo'})
2817 for ln in range(1, line('$'))
2818 call prop_add(ln, 0, {'type': vt, 'text': '---', 'text_align': 'above'})
2819 endfor
2820 normal G
2821 END
2822 call writefile(lines, 'XscriptPropAboveEmpty', 'D')
2823 let buf = RunVimInTerminal('-S XscriptPropAboveEmpty', #{rows: 16, cols: 60})
2824 call VerifyScreenDump(buf, 'Test_prop_above_empty_1', {})
2825
2826 call term_sendkeys(buf, ":set list\<CR>")
2827 call VerifyScreenDump(buf, 'Test_prop_above_empty_2', {})
2828
2829 call StopVimInTerminal(buf)
2830 endfunc
2831
2807 func Test_prop_with_text_below_after_match() 2832 func Test_prop_with_text_below_after_match()
2808 CheckRunVimInTerminal 2833 CheckRunVimInTerminal
2809 2834
2810 let lines =<< trim END 2835 let lines =<< trim END
2811 vim9script 2836 vim9script