From 6c37177cf5ce24dc4664ea32a6764987fb631f15 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 29 Dec 2022 20:03:51 +0900 Subject: Add reload-sync action Close #2816 --- test/test_go.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') 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 } -- cgit v1.2.3