diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-03-04 14:26:47 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-03-04 14:26:47 +0900 |
commit | 88ac3971587ed93060df4c9e5eb06206519e0aad (patch) | |
tree | 6f37ed2d6ff2abd785a7e6b4c1f399f6eadec23c | |
parent | 6fd4be580b65913299f2306998fc3f133c259fb2 (diff) |
Add test case for --no-clear
-rw-r--r-- | test/test_go.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index fef328bb..b827bf17 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1296,6 +1296,14 @@ class TestGoFZF < TestBase tmux.until { |lines| lines[4] == '> 3' } tmux.until { |_| %w[1 2 3] == File.readlines(tempname).map(&:chomp) } end + + def test_no_clear + tmux.send_keys 'seq 100 | fzf --no-clear --inline-info --height 5', :Enter + prompt = '> < 100/100' + tmux.until { |lines| lines[-1] == prompt } + tmux.send_keys :Enter + tmux.until { |lines| lines[-2] == prompt && lines[-1] == '1' } + end end module TestShell |