comparison src/testdir/test_popupwin.vim @ 16806:306766ed0f70 v8.1.1405

patch 8.1.1405: "highlight" option of popup windows not supported commit https://github.com/vim/vim/commit/20c023aee0ceafac9431fb8ab8d169747b5140dd Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 26 21:03:24 2019 +0200 patch 8.1.1405: "highlight" option of popup windows not supported Problem: "highlight" option of popup windows not supported. Solution: Implement the "highlight" option.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 May 2019 21:15:04 +0200
parents f5487021fdad
children 5ff14f96f1c9
comparison
equal deleted inserted replaced
16805:384375708770 16806:306766ed0f70
10 if !CanRunVimInTerminal() 10 if !CanRunVimInTerminal()
11 return 11 return
12 endif 12 endif
13 call writefile([ 13 call writefile([
14 \ "call setline(1, range(1, 100))", 14 \ "call setline(1, range(1, 100))",
15 \ "let winid = popup_create('hello there', {'line': 3, 'col': 11})", 15 \ "hi PopupColor1 ctermbg=lightblue",
16 \ "hi PopupColor ctermbg=lightblue", 16 \ "hi PopupColor2 ctermbg=lightcyan",
17 \ "call setwinvar(winid, '&wincolor', 'PopupColor')", 17 \ "let winid = popup_create('hello there', {'line': 3, 'col': 11, 'highlight': 'PopupColor1'})",
18 \ "let winid2 = popup_create(['another one', 'another two', 'another three'], {'line': 3, 'col': 25})", 18 \ "let winid2 = popup_create(['another one', 'another two', 'another three'], {'line': 3, 'col': 25})",
19 \ "call setwinvar(winid2, '&wincolor', 'PopupColor2')",
19 \], 'XtestPopup') 20 \], 'XtestPopup')
20 let buf = RunVimInTerminal('-S XtestPopup', {'rows': 10}) 21 let buf = RunVimInTerminal('-S XtestPopup', {'rows': 10})
21 call VerifyScreenDump(buf, 'Test_popupwin_01', {}) 22 call VerifyScreenDump(buf, 'Test_popupwin_01', {})
22 23
23 " Add a tabpage 24 " Add a tabpage