diff options
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 bd950604..74f9851a 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2077,6 +2077,15 @@ class TestGoFZF < TestBase tmux.until { |lines| assert_includes lines[1], '4' } end + def test_reload_and_change_preview_should_update_preview + tmux.send_keys "seq 3 | #{FZF} --bind 'ctrl-t:reload(echo 4)+change-preview(echo {})'", :Enter + tmux.until { |lines| assert_equal 3, lines.item_count } + tmux.until { |lines| refute_includes lines[1], '1' } + tmux.send_keys 'C-t' + tmux.until { |lines| assert_equal 1, lines.item_count } + tmux.until { |lines| assert_includes lines[1], '4' } + 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 } |
