diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-09-29 18:42:50 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-10-09 00:17:00 +0900 |
| commit | c1f8d18a0c7fddf57f1bb4b1ed3ba3948255d361 (patch) | |
| tree | d2080b84346b05c4e52f752e3ad5988bcab31217 /test | |
| parent | 8585969d6d6a88161089928bcfc9462c84eca028 (diff) | |
| download | fzf-c1f8d18a0c7fddf57f1bb4b1ed3ba3948255d361.tar.gz | |
Add enable-raw and disable-raw actions
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_raw.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/test_raw.rb b/test/test_raw.rb index 4e3c36ea..139b1950 100644 --- a/test/test_raw.rb +++ b/test/test_raw.rb @@ -5,7 +5,7 @@ require_relative 'lib/common' # Testing raw mode class TestRaw < TestInteractive def test_raw_mode - tmux.send_keys %(seq 1000 | #{FZF} --raw --bind ctrl-x:toggle-raw --gutter '▌' --multi), :Enter + tmux.send_keys %(seq 1000 | #{FZF} --raw --bind ctrl-x:toggle-raw,a:enable-raw,b:disable-raw --gutter '▌' --multi), :Enter tmux.until { assert_equal 1000, it.match_count } tmux.send_keys 1 @@ -56,5 +56,19 @@ class TestRaw < TestInteractive assert_includes it, '▌ 110' assert_includes it, '>>11' end + + tmux.send_keys 'a' + tmux.until do + assert_equal 1, it.select_count + assert_includes it, '>>11' + assert_includes it, '▖ 10' + end + + tmux.send_keys 'b' + tmux.until do + assert_equal 1, it.select_count + assert_includes it, '▌ 110' + assert_includes it, '>>11' + end end end |
