Skip to content
Myr

Fix test cases not to fail on small screens (contd.)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 95bc5b8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:test/test_preview.rb+1 added-1 removed
614 unmodified lines
615 end616 end617618 def test_preview_wrap_sign_between_ansi_fragments_overflow2619 tmux.send_keys %(seq 1 | #{FZF} --preview 'echo -e "\\x1b[33m123 \\x1b[mhi"; echo -e "\\x1b[33m123 \\x1b[mhi"' --preview-window 1,wrap-word), :Enter619 tmux.send_keys %(seq 1 | #{FZF} --preview 'echo -e "\\x1b[33m123 \\x1b[mhi"; echo -e "\\x1b[33m123 \\x1b[mhi"' --preview-window 1,wrap-word,noinfo), :Enter620 tmux.until do |lines|621 assert_equal 1, lines.match_count622 assert_equal(2, lines.count { |line| line.include?('│ 1 │') })623 assert_equal(0, lines.count { |line| line.include?('│ h') })
3 unmodified lines