summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-01-22 01:56:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-01-22 02:18:19 +0900
commitd51980a3f50dfa8ce43b01a3dce216afb8a0bd8f (patch)
tree6041fc67bd7108153363a155b0c05348e65ee11d /test
parentc3d73e7ecbe56358949400f5314fee2d6976885a (diff)
downloadfzf-d51980a3f50dfa8ce43b01a3dce216afb8a0bd8f.tar.gz
Add 'transform-border-label' and 'transform-preview-label'
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb12
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