Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 16886:2bd51fdcc793 v8.1.1444
patch 8.1.1444: not using double line characters for popup border
commit https://github.com/vim/vim/commit/3bfd04e672ea47e371595e50a92ddfb2223f6e3d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 1 20:45:21 2019 +0200
patch 8.1.1444: not using double line characters for popup border
Problem: Not using double line characters for popup border.
Solution: Use double line characters if using utf-8.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jun 2019 21:00:05 +0200 |
parents | 59e4148c0c73 |
children | ec61b6b79865 |
comparison
equal
deleted
inserted
replaced
16885:4aed9232c8b7 | 16886:2bd51fdcc793 |
---|---|
58 | 58 |
59 func Test_popup_with_border_and_padding() | 59 func Test_popup_with_border_and_padding() |
60 if !CanRunVimInTerminal() | 60 if !CanRunVimInTerminal() |
61 return | 61 return |
62 endif | 62 endif |
63 call writefile([ | 63 |
64 \ "call setline(1, range(1, 100))", | 64 for iter in range(0, 1) |
65 \ "call popup_create('hello border', {'line': 2, 'col': 3, 'border': []})", | 65 call writefile([iter == 1 ? '' : 'set enc=latin1', |
66 \ "call popup_create('hello padding', {'line': 2, 'col': 23, 'padding': []})", | 66 \ "call setline(1, range(1, 100))", |
67 \ "call popup_create('hello both', {'line': 2, 'col': 43, 'border': [], 'padding': []})", | 67 \ "call popup_create('hello border', {'line': 2, 'col': 3, 'border': []})", |
68 \ "call popup_create('border TL', {'line': 6, 'col': 3, 'border': [1, 0, 0, 4]})", | 68 \ "call popup_create('hello padding', {'line': 2, 'col': 23, 'padding': []})", |
69 \ "call popup_create('paddings', {'line': 6, 'col': 23, 'padding': [1, 3, 2, 4]})", | 69 \ "call popup_create('hello both', {'line': 2, 'col': 43, 'border': [], 'padding': []})", |
70 \], 'XtestPopupBorder') | 70 \ "call popup_create('border TL', {'line': 6, 'col': 3, 'border': [1, 0, 0, 4]})", |
71 let buf = RunVimInTerminal('-S XtestPopupBorder', {'rows': 15}) | 71 \ "call popup_create('paddings', {'line': 6, 'col': 23, 'padding': [1, 3, 2, 4]})", |
72 call VerifyScreenDump(buf, 'Test_popupwin_20', {}) | 72 \], 'XtestPopupBorder') |
73 | 73 let buf = RunVimInTerminal('-S XtestPopupBorder', {'rows': 15}) |
74 " clean up | 74 call VerifyScreenDump(buf, 'Test_popupwin_2' .. iter, {}) |
75 call StopVimInTerminal(buf) | 75 |
76 call delete('XtestPopupBorder') | 76 call StopVimInTerminal(buf) |
77 call delete('XtestPopupBorder') | |
78 endfor | |
77 | 79 |
78 let with_border_or_padding = { | 80 let with_border_or_padding = { |
79 \ 'line': 2, | 81 \ 'line': 2, |
80 \ 'core_line': 3, | 82 \ 'core_line': 3, |
81 \ 'col': 3, | 83 \ 'col': 3, |