Skip to content

Commit 0b63bd5

Browse files
committed
Add a test that text under dialog appears
1 parent f682c74 commit 0b63bd5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/reline/yamatanooroti/test_rendering.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,21 @@ def test_autocomplete_after_2nd_line
974974
EOC
975975
end
976976

977+
def test_autocomplete_rerender_under_dialog
978+
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.')
979+
write("def hoge\n\n 123456\n 456789\nend\C-p\C-p\C-p a = Str")
980+
write('i')
981+
close
982+
assert_screen(<<~'EOC')
983+
Multiline REPL.
984+
prompt> def hoge
985+
prompt> a = Stri
986+
prompt> 1234String
987+
prompt> 456789
988+
prompt> end
989+
EOC
990+
end
991+
977992
def test_autocomplete_long_with_scrollbar
978993
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete-long}, startup_message: 'Multiline REPL.')
979994
write('S')

0 commit comments

Comments
 (0)