Skip to content

Commit db64216

Browse files
committed
Add a test for dialog at right edge
1 parent 99640ab commit db64216

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/reline/yamatanooroti/test_rendering.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,25 @@ def test_simple_dialog
854854
EOC
855855
end
856856

857+
def test_simple_dialog_at_right_edge
858+
start_terminal(20, 40, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog simple}, startup_message: 'Multiline REPL.')
859+
write('a')
860+
write('b')
861+
write('c')
862+
write("\C-h")
863+
close
864+
assert_screen(<<~'EOC')
865+
Multiline REPL.
866+
prompt> ab
867+
Ruby is...
868+
A dynamic, open source programming
869+
language with a focus on simplicity
870+
and productivity. It has an elegant
871+
syntax that is natural to read and
872+
easy to write.
873+
EOC
874+
end
875+
857876
def test_simple_dialog_with_scroll_key
858877
start_terminal(20, 50, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog long,scrollkey}, startup_message: 'Multiline REPL.')
859878
write('a')

0 commit comments

Comments
 (0)