diff options
Diffstat (limited to 'test/test_go.rb')
-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 5bf5ab58..67207fb4 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2473,6 +2473,15 @@ class TestGoFZF < TestBase end end + def test_focus_event + tmux.send_keys 'seq 100 | fzf --bind "focus:transform-prompt(echo [[{}]])"', :Enter + tmux.until { |lines| assert_includes(lines[-1], '[[1]]') } + tmux.send_keys :Up + tmux.until { |lines| assert_includes(lines[-1], '[[2]]') } + tmux.send_keys :X + tmux.until { |lines| assert_includes(lines[-1], '[[]]') } + end + def test_labels_center tmux.send_keys 'echo x | fzf --border --border-label foobar --preview : --preview-label barfoo --bind "space:change-border-label(foobarfoo)+change-preview-label(barfoobar),enter:transform-border-label(echo foo{}foo)+transform-preview-label(echo bar{}bar)"', :Enter tmux.until do |