comparison src/testdir/test_popupwin.vim @ 16888:ec61b6b79865 v8.1.1445

patch 8.1.1445: popup window border highlight not implemented yet commit https://github.com/vim/vim/commit/790498b509443f96f39431d2bc87b777efbe250f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 1 22:15:29 2019 +0200 patch 8.1.1445: popup window border highlight not implemented yet Problem: Popup window border highlight not implemented yet. Solution: Implement the "borderhighlight" option.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jun 2019 22:30:05 +0200
parents 2bd51fdcc793
children 5131023c5728
comparison
equal deleted inserted replaced
16887:a8aa4c4ffa4a 16888:ec61b6b79865
74 call VerifyScreenDump(buf, 'Test_popupwin_2' .. iter, {}) 74 call VerifyScreenDump(buf, 'Test_popupwin_2' .. iter, {})
75 75
76 call StopVimInTerminal(buf) 76 call StopVimInTerminal(buf)
77 call delete('XtestPopupBorder') 77 call delete('XtestPopupBorder')
78 endfor 78 endfor
79
80 call writefile([
81 \ "call setline(1, range(1, 100))",
82 \ "hi BlueColor ctermbg=lightblue",
83 \ "hi TopColor ctermbg=253",
84 \ "hi RightColor ctermbg=245",
85 \ "hi BottomColor ctermbg=240",
86 \ "hi LeftColor ctermbg=248",
87 \ "call popup_create('hello border', {'line': 2, 'col': 3, 'border': [], 'borderhighlight': ['BlueColor']})",
88 \ "call popup_create(['hello border', 'and more'], {'line': 2, 'col': 23, 'border': [], 'borderhighlight': ['TopColor', 'RightColor', 'BottomColor', 'LeftColor']})",
89 \ "call popup_create(['hello border', 'lines only'], {'line': 2, 'col': 43, 'border': [], 'borderhighlight': ['BlueColor'], 'borderchars': ['x']})",
90 \ "call popup_create(['hello border', 'with corners'], {'line': 2, 'col': 60, 'border': [], 'borderhighlight': ['BlueColor'], 'borderchars': ['x', '#']})",
91 \ "call popup_create(['hello border', 'with numbers'], {'line': 6, 'col': 3, 'border': [], 'borderhighlight': ['BlueColor'], 'borderchars': ['0', '1', '2', '3', '4', '5', '6', '7']})",
92 \ "call popup_create(['hello border', 'just blanks'], {'line': 7, 'col': 23, 'border': [], 'borderhighlight': ['BlueColor'], 'borderchars': [' ']})",
93 \], 'XtestPopupBorder')
94 let buf = RunVimInTerminal('-S XtestPopupBorder', {'rows': 12})
95 call VerifyScreenDump(buf, 'Test_popupwin_22', {})
96
97 call StopVimInTerminal(buf)
98 call delete('XtestPopupBorder')
79 99
80 let with_border_or_padding = { 100 let with_border_or_padding = {
81 \ 'line': 2, 101 \ 'line': 2,
82 \ 'core_line': 3, 102 \ 'core_line': 3,
83 \ 'col': 3, 103 \ 'col': 3,