comparison src/testdir/test_textprop.vim @ 29629:2f5610696bcd v9.0.0155

patch 9.0.0155 Problem: No test for what patch 9.0.0155 fixes. Solution: Add a test. Fix typos. (closes #10822) Commit: https://github.com/vim/vim/commit/db9b96d84491131460e5876fe21b9bbc58c73ed7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 6 17:38:53 2022 +0100 patch 9.0.0155 Problem: No test for what patch 9.0.0155 fixes. Solution: Add a test. Fix typos. (closes https://github.com/vim/vim/issues/10822)
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Aug 2022 18:45:03 +0200
parents dd96f3d8ed85
children e80174903fdf
comparison
equal deleted inserted replaced
29628:0a8cb672c34c 29629:2f5610696bcd
2432 let lines =<< trim END 2432 let lines =<< trim END
2433 set nowrap 2433 set nowrap
2434 call setline(1, ['one', 'two', 'three']) 2434 call setline(1, ['one', 'two', 'three'])
2435 call prop_type_add('belowprop', #{highlight: 'ErrorMsg'}) 2435 call prop_type_add('belowprop', #{highlight: 'ErrorMsg'})
2436 call prop_type_add('anotherprop', #{highlight: 'Search'}) 2436 call prop_type_add('anotherprop', #{highlight: 'Search'})
2437 call prop_type_add('someprop', #{highlight: 'DiffChange'})
2437 call prop_add(1, 0, #{type: 'belowprop', text: ' Below the line ', text_align: 'below'}) 2438 call prop_add(1, 0, #{type: 'belowprop', text: ' Below the line ', text_align: 'below'})
2438 call prop_add(2, 0, #{type: 'anotherprop', text: 'another', text_align: 'below'}) 2439 call prop_add(2, 0, #{type: 'anotherprop', text: 'another', text_align: 'below'})
2439 call prop_add(2, 0, #{type: 'belowprop', text: 'One More Here', text_align: 'below'}) 2440 call prop_add(2, 0, #{type: 'belowprop', text: 'One More Here', text_align: 'below'})
2441 call prop_add(1, 0, #{type: 'someprop', text: 'right here', text_align: 'right'})
2442 call prop_add(1, 0, #{type: 'someprop', text: ' After the text', text_align: 'after'})
2440 normal G$ 2443 normal G$
2441 END 2444 END
2442 call writefile(lines, 'XscriptPropsAfterNowrap') 2445 call writefile(lines, 'XscriptPropsAfterNowrap')
2443 let buf = RunVimInTerminal('-S XscriptPropsAfterNowrap', #{rows: 8, cols: 60}) 2446 let buf = RunVimInTerminal('-S XscriptPropsAfterNowrap', #{rows: 10, cols: 60})
2444 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_1', {}) 2447 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_1', {})
2445 2448
2446 call term_sendkeys(buf, ":set signcolumn=yes foldcolumn=3\<CR>") 2449 call term_sendkeys(buf, ":set signcolumn=yes foldcolumn=3\<CR>")
2447 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_2', {}) 2450 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_2', {})
2448 2451