[前][次][番号順一覧][スレッド一覧]

ruby-changes:68304

From: aycabta <ko1@a...>
Date: Fri, 8 Oct 2021 10:33:37 +0900 (JST)
Subject: [ruby-changes:68304] 36bf378363 (master): [ruby/reline] Add a test for narrow screen without scrollbar

https://git.ruby-lang.org/ruby.git/commit/?id=36bf378363

From 36bf378363519f70ee7955fd86b6281224ce051a Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Wed, 6 Oct 2021 03:25:53 +0900
Subject: [ruby/reline] Add a test for narrow screen without scrollbar

https://github.com/ruby/reline/commit/44cd35e65d
---
 test/reline/yamatanooroti/test_rendering.rb | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

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 https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/test_rendering.rb#L1073
     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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]