Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 18398:21c25bee9df8 v8.1.2193
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work
Commit: https://github.com/vim/vim/commit/a13961536e5b1e686574826d4ed713e3d5526715
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 20 18:46:05 2019 +0200
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work
Problem: Popup_setoptions(popup_getoptions()) does not work.
Solution: Also accept a list with three entries for "moved" and
"mousemoved". (closes #5081)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Oct 2019 19:00:03 +0200 |
parents | ba5d8c5d77d7 |
children | ee8db42dacf6 |
comparison
equal
deleted
inserted
replaced
18397:3bc55782efa5 | 18398:21c25bee9df8 |
---|---|
167 let options = popup_getoptions(winid) | 167 let options = popup_getoptions(winid) |
168 call assert_equal([1, 0, 1, 1], options.border) | 168 call assert_equal([1, 0, 1, 1], options.border) |
169 call assert_equal([1, 2, 3, 4], options.padding) | 169 call assert_equal([1, 2, 3, 4], options.padding) |
170 call assert_equal(['Top', 'Right', 'Bottom', 'Left'], options.borderhighlight) | 170 call assert_equal(['Top', 'Right', 'Bottom', 'Left'], options.borderhighlight) |
171 call assert_equal(['1', '^', '2', '>', '3', 'v', '4', '<'], options.borderchars) | 171 call assert_equal(['1', '^', '2', '>', '3', 'v', '4', '<'], options.borderchars) |
172 | |
173 " Check that popup_setoptions() takes the output of popup_getoptions() | |
174 call popup_setoptions(winid, options) | |
175 call assert_equal(options, popup_getoptions(winid)) | |
172 | 176 |
173 let winid = popup_create('hello both', #{line: 3, col: 8, border: [], padding: []}) | 177 let winid = popup_create('hello both', #{line: 3, col: 8, border: [], padding: []}) |
174 call assert_equal(#{ | 178 call assert_equal(#{ |
175 \ line: 3, | 179 \ line: 3, |
176 \ core_line: 5, | 180 \ core_line: 5, |