summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-11-02 19:41:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-11-02 19:41:59 +0900
commit525040238e6b7cdec6b99962a60c8e0ccbd2b2e0 (patch)
tree1a1271ec62b8b438db0fa1767c396c0974e0e472 /test
parent33f89a08f32634d57cb145214e4647534433ac6c (diff)
downloadfzf-525040238e6b7cdec6b99962a60c8e0ccbd2b2e0.tar.gz
Fix behavior of 'deselect-all' to only deselect matches
To make it consistent with select-all and toggle-all. Close #1364
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 2cfbcfdd..9282f9ee 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -865,16 +865,22 @@ class TestGoFZF < TestBase
tmux.until { |lines| lines[-2].include? '(100)' }
tmux.send_keys :Tab, :Tab
tmux.until { |lines| lines[-2].include? '(98)' }
+ tmux.send_keys '100'
+ tmux.until { |lines| lines.match_count == 1 }
+ tmux.send_keys 'C-d'
+ tmux.until { |lines| lines[-2].include? '(97)' }
+ tmux.send_keys 'C-u'
+ tmux.until { |lines| lines.match_count == 100 }
tmux.send_keys 'C-d'
tmux.until { |lines| !lines[-2].include? '(' }
- tmux.send_keys :Tab, :Tab
+ tmux.send_keys :BTab, :BTab
tmux.until { |lines| lines[-2].include? '(2)' }
tmux.send_keys 0
tmux.until { |lines| lines[-2].include? '10/100' }
tmux.send_keys 'C-a'
tmux.until { |lines| lines[-2].include? '(12)' }
tmux.send_keys :Enter
- assert_equal %w[2 1 10 20 30 40 50 60 70 80 90 100],
+ assert_equal %w[1 2 10 20 30 40 50 60 70 80 90 100],
readonce.split($INPUT_RECORD_SEPARATOR)
end