summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_go.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index b827bf17..1106babd 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -1304,6 +1304,20 @@ class TestGoFZF < TestBase
tmux.send_keys :Enter
tmux.until { |lines| lines[-2] == prompt && lines[-1] == '1' }
end
+
+ def test_change_top
+ tmux.send_keys %[seq 1000 | #{FZF} --bind change:top], :Enter
+ tmux.until { |lines| lines.match_count == 1000 }
+ tmux.send_keys :Up
+ tmux.until { |lines| lines[-4] == '> 2' }
+ tmux.send_keys 1
+ tmux.until { |lines| lines[-3] == '> 1' }
+ tmux.send_keys :Up
+ tmux.until { |lines| lines[-4] == '> 10' }
+ tmux.send_keys 1
+ tmux.until { |lines| lines[-3] == '> 11' }
+ tmux.send_keys :Enter
+ end
end
module TestShell