Skip to content

Commit ec3c334

Browse files
committed
Add multiple-dialog rendering test
1 parent 99d08a8 commit ec3c334

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/reline/yamatanooroti/test_rendering.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,23 @@ def test_autocomplete_rerender_under_dialog
11381138
EOC
11391139
end
11401140

1141+
def test_rerender_multiple_dialog
1142+
start_terminal(20, 60, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete --dialog simple}, startup_message: 'Multiline REPL.')
1143+
write("if\n abcdef\n 123456\n 456789\nend\C-p\C-p\C-p\C-p Str")
1144+
write("\t")
1145+
close
1146+
assert_screen(<<~'EOC')
1147+
Multiline REPL.
1148+
prompt> if String
1149+
prompt> aStringRuby is...
1150+
prompt> 1StructA dynamic, open source programming
1151+
prompt> 456789 language with a focus on simplicity
1152+
prompt> end and productivity. It has an elegant
1153+
syntax that is natural to read and
1154+
easy to write.
1155+
EOC
1156+
end
1157+
11411158
def test_autocomplete_long_with_scrollbar
11421159
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete-long}, startup_message: 'Multiline REPL.')
11431160
write('S')

0 commit comments

Comments
 (0)