diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-01 17:22:44 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-01 17:23:22 +0900 |
| commit | 178b49832e09a78a9f8f5ce1647d5f36b667a097 (patch) | |
| tree | 60ac7842169eda5ea7db3141e78ae236a27f2231 /test/test_layout.rb | |
| parent | 18cbb4a84d187adc121e5937b1ec027e00c66f0a (diff) | |
| download | fzf-178b49832e09a78a9f8f5ce1647d5f36b667a097.tar.gz | |
Fix {show,hide,toggle}-input and add test cases
Diffstat (limited to 'test/test_layout.rb')
| -rw-r--r-- | test/test_layout.rb | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/test_layout.rb b/test/test_layout.rb index 13adffef..0e4db204 100644 --- a/test/test_layout.rb +++ b/test/test_layout.rb @@ -893,7 +893,7 @@ class TestLayout < TestInteractive end def test_min_height_auto_no_input_reverse_list - tmux.send_keys %(seq 100 | #{FZF} --style full:sharp --layout reverse-list --no-input --height 1% --min-height 5+), :Enter + tmux.send_keys %(seq 100 | #{FZF} --style full:sharp --layout reverse-list --no-input --height 1% --min-height 5+ --bind a:show-input,b:hide-input,c:toggle-input), :Enter block = <<~BLOCK ┌───────── @@ -905,6 +905,23 @@ class TestLayout < TestInteractive └───────── BLOCK tmux.until { assert_block(block, it) } + tmux.send_keys :a + block2 = <<~BLOCK + ┌───── + │ > 1 + │ 2 + └───── + ┌───── + │ > + └───── + BLOCK + tmux.until { assert_block(block2, it) } + tmux.send_keys :b + tmux.until { assert_block(block, it) } + tmux.send_keys :c + tmux.until { assert_block(block2, it) } + tmux.send_keys :c + tmux.until { assert_block(block, it) } end def test_layout_reverse_list |
