diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-06-11 00:04:24 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-06-11 16:09:15 +0900 |
commit | d0b7780239dd9f9e2bf6c252e03b463990a966bd (patch) | |
tree | dbf36a5ec8b556743e03f85be367dce731975cab /test | |
parent | e627ca6bd7fa40ef3f9077aa49f7c9019b474997 (diff) |
Add --info=right
Related: #3322
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 5ac0eee0..0062cf11 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2707,6 +2707,16 @@ class TestGoFZF < TestBase tmux.until { assert(_1[-2] == ' 1/100') } end + def test_info_right + tmux.send_keys "#{FZF} --info=right --separator x --bind 'start:reload:seq 100; sleep 10'", :Enter + tmux.until { assert_match(%r{xxx [⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏] 100/100}, _1[-2]) } + end + + def test_info_inline_right + tmux.send_keys "#{FZF} --info=inline-right --bind 'start:reload:seq 100; sleep 10'", :Enter + tmux.until { assert_match(%r{[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏] 100/100}, _1[-1]) } + end + def test_prev_next_selected tmux.send_keys 'seq 10 | fzf --multi --bind ctrl-n:next-selected,ctrl-p:prev-selected', :Enter tmux.until { |lines| assert_equal 10, lines.item_count } |