diff options
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test_go.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 5a3659d5..5bf5ab58 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2474,11 +2474,21 @@ class TestGoFZF < TestBase end def test_labels_center - tmux.send_keys ': | fzf --border --border-label foobar --preview : --preview-label barfoo', :Enter + 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 assert_includes(_1[0], '─foobar─') assert_includes(_1[1], '─barfoo─') end + tmux.send_keys :space + tmux.until do + assert_includes(_1[0], '─foobarfoo─') + assert_includes(_1[1], '─barfoobar─') + end + tmux.send_keys :Enter + tmux.until do + assert_includes(_1[0], '─fooxfoo─') + assert_includes(_1[1], '─barxbar─') + end end def test_labels_left |
