summaryrefslogtreecommitdiff
path: root/test/reline
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-10-06 03:25:53 +0900
committergit <svn-admin@ruby-lang.org>2021-10-08 10:33:27 +0900
commit36bf378363519f70ee7955fd86b6281224ce051a (patch)
tree16c6b33fb7d0e163c14483d791d176c6c2e04d06 /test/reline
parent374b15a84a777701f61c7cc105f7db5af27cc9ff (diff)
[ruby/reline] Add a test for narrow screen without scrollbar
https://github.com/ruby/reline/commit/44cd35e65d
Diffstat (limited to 'test/reline')
-rw-r--r--test/reline/yamatanooroti/test_rendering.rb16
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