diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-12-29 20:03:51 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-12-29 20:04:33 +0900 |
commit | 6c37177cf5ce24dc4664ea32a6764987fb631f15 (patch) | |
tree | 91c818e558f3cf5f19c85c848799895a414f87de /test | |
parent | 14775aa975c147b92c6a9011a0991538cf9e82fe (diff) |
Add reload-sync action
Close #2816
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index a4d2e2a8..18999da3 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2161,6 +2161,15 @@ class TestGoFZF < TestBase tmux.until { |lines| assert_includes lines[1], '4' } end + def test_reload_sync + tmux.send_keys "seq 100 | #{FZF} --bind 'load:reload-sync(sleep 1; seq 1000)+unbind(load)'", :Enter + tmux.until { |lines| assert_equal 100, lines.item_count } + tmux.send_keys '00' + tmux.until { |lines| assert_equal 1, lines.match_count } + # After 1 second + tmux.until { |lines| assert_equal 10, lines.match_count } + end + def test_scroll_off tmux.send_keys "seq 1000 | #{FZF} --scroll-off=3 --bind l:last", :Enter tmux.until { |lines| assert_equal 1000, lines.item_count } |