summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-02 02:22:47 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-02 02:23:48 +0900
commit0c61223884f3bccde7c28f4a9ca06819bdd1e427 (patch)
treecb77da44c967b96a06fcfc1d24f5eae737a0ec8f /test
parent32234be7a271196b62689974bf2002034f7e712e (diff)
downloadfzf-0c61223884f3bccde7c28f4a9ca06819bdd1e427.tar.gz
Fix tcell renderer's pause and resume
Diffstat (limited to 'test')
-rw-r--r--test/test_layout.rb6
-rw-r--r--test/test_preview.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/test_layout.rb b/test/test_layout.rb
index 0e4db204..ee0f31d2 100644
--- a/test/test_layout.rb
+++ b/test/test_layout.rb
@@ -338,7 +338,7 @@ class TestLayout < TestInteractive
end
def test_gap
- tmux.send_keys %(seq 100 | #{FZF} --gap --border --reverse), :Enter
+ tmux.send_keys %(seq 100 | #{FZF} --gap --border rounded --reverse), :Enter
block = <<~BLOCK
╭─────────────────
│ >
@@ -355,7 +355,7 @@ class TestLayout < TestInteractive
end
def test_gap_2
- tmux.send_keys %(seq 100 | #{FZF} --gap=2 --gap-line xyz --border --reverse), :Enter
+ tmux.send_keys %(seq 100 | #{FZF} --gap=2 --gap-line xyz --border rounded --reverse), :Enter
block = <<~BLOCK
╭─────────────────
│ >
@@ -799,7 +799,7 @@ class TestLayout < TestInteractive
end
def test_style_full_adaptive_height
- tmux.send_keys %(seq 1| #{FZF} --style=full --height=~100% --header-lines=1 --info=default), :Enter
+ tmux.send_keys %(seq 1| #{FZF} --style=full:rounded --height=~100% --header-lines=1 --info=default), :Enter
block = <<~BLOCK
╭────────
╰────────
diff --git a/test/test_preview.rb b/test/test_preview.rb
index d4faffa5..ee1a5672 100644
--- a/test/test_preview.rb
+++ b/test/test_preview.rb
@@ -524,7 +524,7 @@ class TestPreview < TestInteractive
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.send_keys "seq 10 | #{FZF} --preview-border rounded --preview-window '~5,2,+0,<100000(~0,+100,wrap,noinfo)' --preview 'seq 1000'", :Enter
tmux.until { |lines| assert_equal 10, lines.match_count }
tmux.until do |lines|
assert_equal ['╭────╮', '│ 10 │', '│ 0 │', '│ 10 │', '│ 1 │'], lines.take(5).map(&:strip)