diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-14 21:27:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-14 21:27:06 +0200 |
commit | ab18673731522c18696b9b132d3841646904e1bd (patch) | |
tree | 03234ad6705334d62dbd6c32bd0fed716a06f590 /runtime | |
parent | da1f71d75f0bf5d5ef876a09aa08fb19f6f24b3b (diff) | |
download | vim-git-ab18673731522c18696b9b132d3841646904e1bd.tar.gz |
patch 8.1.0390: scrollbars are not testedv8.1.0390
Problem: Scrollbars are not tested.
Solution: Add test_scrollbar() and a test.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index fdac40586..fff19da1a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2475,6 +2475,8 @@ test_null_partial() Funcref null value for testing test_null_string() String null value for testing test_option_not_set({name}) none reset flag indicating option was set test_override({expr}, {val}) none test with Vim internal overrides +test_scrollbar({which}, {value}, {dragging}) + none scroll in the GUI for testing test_settime({expr}) none set current time for testing timer_info([{id}]) List information about timers timer_pause({id}, {pause}) none pause or unpause a timer @@ -8773,6 +8775,23 @@ test_override({name}, {val}) *test_override()* < The value of "starting" is saved. It is restored by: > call test_override('starting', 0) +test_scrollbar({which}, {value}, {dragging}) *test_scrollbar()* + Pretend using scrollbar {which} to move it to position + {value}. {which} can be: + left Left scrollbar of the current window + right Right scrollbar of the current window + hor Horizontal scrollbar + + For the vertical scrollbars {value} can be 1 to the + line-count of the buffer. For the horizontal scrollbar the + {value} can be between 1 and the maximum line length, assuming + 'wrap' is not set. + + When {dragging} is non-zero it's like dragging the scrollbar, + otherwise it's like clicking in the scrollbar. + Only works when the {which} scrollbar actually exists, + obviously only when using the GUI. + test_settime({expr}) *test_settime()* Set the time Vim uses internally. Currently only used for timestamps in the history, as they are used in viminfo, and |