mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
a22c04a1d9
commit
199a681d71
1 changed files with 15 additions and 0 deletions
|
@ -974,6 +974,21 @@ begin
|
||||||
EOC
|
EOC
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_autocomplete_rerender_under_dialog
|
||||||
|
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.')
|
||||||
|
write("def hoge\n\n 123456\n 456789\nend\C-p\C-p\C-p a = Str")
|
||||||
|
write('i')
|
||||||
|
close
|
||||||
|
assert_screen(<<~'EOC')
|
||||||
|
Multiline REPL.
|
||||||
|
prompt> def hoge
|
||||||
|
prompt> a = Stri
|
||||||
|
prompt> 1234String
|
||||||
|
prompt> 456789
|
||||||
|
prompt> end
|
||||||
|
EOC
|
||||||
|
end
|
||||||
|
|
||||||
def test_autocomplete_long_with_scrollbar
|
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.')
|
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete-long}, startup_message: 'Multiline REPL.')
|
||||||
write('S')
|
write('S')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue