diff options
author | aycabta <aycabta@gmail.com> | 2021-10-06 03:25:53 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-10-08 10:33:27 +0900 |
commit | 36bf378363519f70ee7955fd86b6281224ce051a (patch) | |
tree | 16c6b33fb7d0e163c14483d791d176c6c2e04d06 /test | |
parent | 374b15a84a777701f61c7cc105f7db5af27cc9ff (diff) | |
download | ruby-36bf378363519f70ee7955fd86b6281224ce051a.tar.gz |
[ruby/reline] Add a test for narrow screen without scrollbar
https://github.com/ruby/reline/commit/44cd35e65d
Diffstat (limited to 'test')
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index 78128a3fcf..08a6171786 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -1073,6 +1073,22 @@ begin end def test_dialog_narrower_than_screen + start_terminal(20, 11, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog simple}, startup_message: 'Multiline REPL.') + close + assert_screen(<<~'EOC') + Multiline R + EPL. + prompt> + Ruby is... + A dynamic, + language wi + and product + syntax that + easy to wri + EOC + end + + def test_dialog_narrower_than_screen_with_scrollbar start_terminal(20, 11, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete-long}, startup_message: 'Multiline REPL.') write('S' + "\C-i" * 3) close |