Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 17204:1a6ccc91ed46 v8.1.1601
patch 8.1.1601: missing changes to popup window test file
commit https://github.com/vim/vim/commit/8da41816316f17382817df3f9449b55df8d39651
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 26 18:04:54 2019 +0200
patch 8.1.1601: missing changes to popup window test file
Problem: Missing changes to popup window test file.
Solution: Add those changes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 26 Jun 2019 18:15:05 +0200 |
parents | 4c009ec23c0a |
children | 175941dcc96b |
comparison
equal
deleted
inserted
replaced
17203:75a3120aee8e | 17204:1a6ccc91ed46 |
---|---|
1421 throw 'Skipped: cannot make screendumps' | 1421 throw 'Skipped: cannot make screendumps' |
1422 endif | 1422 endif |
1423 | 1423 |
1424 let lines =<< trim END | 1424 let lines =<< trim END |
1425 call setline(1, range(1, 20)) | 1425 call setline(1, range(1, 20)) |
1426 hi ScrollThumb ctermbg=blue | |
1427 hi ScrollBar ctermbg=red | |
1426 let winid = popup_create(['one', 'two', 'three', 'four', 'five', | 1428 let winid = popup_create(['one', 'two', 'three', 'four', 'five', |
1427 \ 'six', 'seven', 'eight', 'nine'], { | 1429 \ 'six', 'seven', 'eight', 'nine'], { |
1428 \ 'minwidth': 8, | 1430 \ 'minwidth': 8, |
1429 \ 'maxheight': 4, | 1431 \ 'maxheight': 4, |
1430 \ }) | 1432 \ }) |
1447 call VerifyScreenDump(buf, 'Test_popupwin_scroll_3', {}) | 1449 call VerifyScreenDump(buf, 'Test_popupwin_scroll_3', {}) |
1448 | 1450 |
1449 call term_sendkeys(buf, ":call popup_setoptions(winid, {'firstline': 9})\<CR>") | 1451 call term_sendkeys(buf, ":call popup_setoptions(winid, {'firstline': 9})\<CR>") |
1450 call VerifyScreenDump(buf, 'Test_popupwin_scroll_4', {}) | 1452 call VerifyScreenDump(buf, 'Test_popupwin_scroll_4', {}) |
1451 | 1453 |
1454 call term_sendkeys(buf, ":call popup_setoptions(winid, {'scrollbarhighlight': 'ScrollBar', 'thumbhighlight': 'ScrollThumb'})\<CR>") | |
1452 call term_sendkeys(buf, ":call ScrollUp()\<CR>") | 1455 call term_sendkeys(buf, ":call ScrollUp()\<CR>") |
1453 call VerifyScreenDump(buf, 'Test_popupwin_scroll_5', {}) | 1456 call VerifyScreenDump(buf, 'Test_popupwin_scroll_5', {}) |
1454 | 1457 |
1455 call term_sendkeys(buf, ":call ScrollDown()\<CR>") | 1458 call term_sendkeys(buf, ":call ScrollDown()\<CR>") |
1456 call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {}) | 1459 call VerifyScreenDump(buf, 'Test_popupwin_scroll_6', {}) |