diff options
author | aycabta <aycabta@gmail.com> | 2021-09-10 08:29:01 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-10 09:06:39 +0900 |
commit | 199a681d7141b83842247a689321f9aa6e40b4c2 (patch) | |
tree | 43cef76438be12a175167ecec0ec43f05a994638 /test/reline | |
parent | a22c04a1d900746761da93e5051a6b22571b94cc (diff) | |
download | ruby-199a681d7141b83842247a689321f9aa6e40b4c2.tar.gz |
[ruby/reline] Add a test that text under dialog appears
https://github.com/ruby/reline/commit/0b63bd56ce
Diffstat (limited to 'test/reline')
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index b29a34e367..5b4cf766f5 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -974,6 +974,21 @@ begin EOC 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 start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete-long}, startup_message: 'Multiline REPL.') write('S') |