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

ruby-changes:67683

From: aycabta <ko1@a...>
Date: Fri, 10 Sep 2021 09:05:18 +0900 (JST)
Subject: [ruby-changes:67683] 963e2c33b6 (master): [ruby/reline] Add a test that dialog may appear at the top if cursor at bottom edge

https://git.ruby-lang.org/ruby.git/commit/?id=963e2c33b6

From 963e2c33b66c6fabcbcce2acbf280be9e3ccb2e8 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Fri, 10 Sep 2021 06:57:41 +0900
Subject: [ruby/reline] Add a test that dialog may appear at the top if cursor
 at bottom edge

https://github.com/ruby/reline/commit/6c2ab47958
---
 test/reline/yamatanooroti/test_rendering.rb | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb
index fdfcaf9..c147d1c 100644
--- a/test/reline/yamatanooroti/test_rendering.rb
+++ b/test/reline/yamatanooroti/test_rendering.rb
@@ -873,6 +873,27 @@ begin https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/test_rendering.rb#L873
       EOC
     end
 
+    def test_autocomplete_at_bottom
+      start_terminal(15, 50, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.')
+      write('def hoge' + "\C-m" * 10 + "end\C-p  ")
+      write('S')
+      close
+      assert_screen(<<~'EOC')
+        Multiline REPL.
+        prompt> def hoge
+        prompt>
+        prompt>
+        prompt>   String
+        prompt>   Struct
+        prompt>   Symbol
+        prompt>   ScriptError
+        prompt>   SyntaxError
+        prompt>   Signal
+        prompt>   S
+        prompt> end
+      EOC
+    end
+
     def test_simple_dialog_with_scroll_key
       start_terminal(20, 50, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog long,scrollkey}, startup_message: 'Multiline REPL.')
       write('a')
-- 
cgit v1.1


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

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