mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Add a test for narrow screen without scrollbar
https://github.com/ruby/reline/commit/44cd35e65d
This commit is contained in:
parent
374b15a84a
commit
36bf378363
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue