Skip to content
Myr

Fix test cases not to fail on small screens

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 0b08f0d · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:test/test_preview.rb+2 added-2 removed
605 unmodified lines
606 end607 end608609 def test_preview_wrap_sign_between_ansi_fragments_overflow610 tmux.send_keys %(seq 1 | #{FZF} --preview 'echo -e "\\x1b[33m1234567890 \\x1b[mhello"; echo -e "\\x1b[33m1234567890 \\x1b[mhello"' --preview-window 2,wrap-word), :Enter610 tmux.send_keys %(seq 1 | #{FZF} --preview 'echo -e "\\x1b[33m123 \\x1b[mhi"; echo -e "\\x1b[33m123 \\x1b[mhi"' --preview-window 2,wrap-word,noinfo), :Enter611 tmux.until do |lines|612 assert_equal 1, lines.match_count613 assert_equal(2, lines.count { |line| line.include?('│ 12 │') })614 assert_equal(0, lines.count { |line| line.include?('│ h') })615 end616 end617618 def test_preview_wrap_sign_between_ansi_fragments_overflow2619 tmux.send_keys %(seq 1 | #{FZF} --preview 'echo -e "\\x1b[33m1234567890 \\x1b[mhello"; echo -e "\\x1b[33m1234567890 \\x1b[mhello"' --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), :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