summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-12-08 20:03:15 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-12-12 13:53:08 +0900
commitda9179335c637d91ab49256dd3c3e7dcdf319e19 (patch)
treeeb0fff56ab0404aec4a75125b96bcb8913ce4fae /test
parentcdf641fa3ef266fee7217bf01513e5f942adb340 (diff)
downloadfzf-da9179335c637d91ab49256dd3c3e7dcdf319e19.tar.gz
Respect the properties of the currently active preview window options
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 433fdef3..e343b967 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -3073,6 +3073,14 @@ class TestGoFZF < TestBase
tmux.until { |lines| assert_includes lines, '/1/1/' }
end
+ def test_alternative_preview_window_opts
+ tmux.send_keys "seq 10 | #{FZF} --preview-window '~5,2,+0,<100000(~0,+100,wrap,noinfo)' --preview 'seq 1000'", :Enter
+ tmux.until { |lines| assert_equal 10, lines.item_count }
+ tmux.until do |lines|
+ assert_equal ['╭────╮', '│ 10 │', '│ 0 │', '│ 10 │', '│ 1 │'], lines.take(5).map(&:strip)
+ end
+ end
+
def test_become
tmux.send_keys "seq 100 | #{FZF} --bind 'enter:become:seq {} | #{FZF}'", :Enter
tmux.until { |lines| assert_equal 100, lines.item_count }