summaryrefslogtreecommitdiffstats
path: root/test/test_go.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go.rb')
-rw-r--r--test/test_go.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index ad2150e0..f702efcb 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -731,6 +731,18 @@ class TestGoFZF < TestBase
tmux.prepare
end
+ def test_margin
+ tmux.send_keys "yes | head -1000 | #{fzf "--margin 5,3"}", :Enter
+ tmux.until { |lines| lines[4] == '' && lines[5] == ' y' }
+ tmux.send_keys :Enter
+ end
+
+ def test_margin_reverse
+ tmux.send_keys "seq 1000 | #{fzf "--margin 7,5 --reverse"}", :Enter
+ tmux.until { |lines| lines[1 + 7] == ' 1000/1000' }
+ tmux.send_keys :Enter
+ end
+
private
def writelines path, lines
File.unlink path while File.exists? path