Skip to content

Commit

Permalink
Add multiple-dialog rendering test
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Mar 15, 2023
1 parent 024e9a4 commit 2290ce7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/reline/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,23 @@ def test_autocomplete_rerender_under_dialog
EOC
end

def test_rerender_multiple_dialog
start_terminal(20, 60, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete --dialog simple}, startup_message: 'Multiline REPL.')
write("if\n abcdef\n 123456\n 456789\nend\C-p\C-p\C-p\C-p Str")
write("\t")
close
assert_screen(<<~'EOC')
Multiline REPL.
prompt> if String
prompt> aStringRuby is...
prompt> 1StructA dynamic, open source programming
prompt> 456789 language with a focus on simplicity
prompt> end and productivity. It has an elegant
syntax that is natural to read and
easy to write.
EOC
end

def test_autocomplete_long_with_scrollbar
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete-long}, startup_message: 'Multiline REPL.')
write('S')
Expand Down

0 comments on commit 2290ce7

Please sign in to comment.