@@ -556,7 +556,7 @@ def test_bracketed_paste
556
556
close
557
557
end
558
558
559
- def test_bracketed_paste_with_undo
559
+ def test_bracketed_paste_with_undo_redo
560
560
omit if Reline . core . io_gate . win?
561
561
start_terminal ( 5 , 30 , %W{ ruby -I#{ @pwd } /lib #{ @pwd } /test/reline/yamatanooroti/multiline_repl} , startup_message : 'Multiline REPL.' )
562
562
write ( "abc" )
@@ -566,15 +566,6 @@ def test_bracketed_paste_with_undo
566
566
Multiline REPL.
567
567
prompt> abc
568
568
EOC
569
- close
570
- end
571
-
572
- def test_bracketed_paste_with_redo
573
- omit if Reline . core . io_gate . win?
574
- start_terminal ( 5 , 30 , %W{ ruby -I#{ @pwd } /lib #{ @pwd } /test/reline/yamatanooroti/multiline_repl} , startup_message : 'Multiline REPL.' )
575
- write ( "abc" )
576
- write ( "\e [200~def hoge\r \t 3\r end\e [201~" )
577
- write ( "\C -_" )
578
569
write ( "\M -\C -_" )
579
570
assert_screen ( <<~EOC )
580
571
Multiline REPL.
@@ -639,46 +630,6 @@ def each_top_level_statement
639
630
prompt> end
640
631
prompt> end
641
632
EOC
642
- close
643
- end
644
-
645
- def test_longer_than_screen_height_with_scroll_back
646
- start_terminal ( 5 , 30 , %W{ ruby -I#{ @pwd } /lib #{ @pwd } /test/reline/yamatanooroti/multiline_repl} , startup_message : 'Multiline REPL.' )
647
- write ( <<~EOC . chomp )
648
- def each_top_level_statement
649
- initialize_input
650
- catch(:TERM_INPUT) do
651
- loop do
652
- begin
653
- prompt
654
- unless l = lex
655
- throw :TERM_INPUT if @line == ''
656
- else
657
- @line_no += l.count("\n ")
658
- next if l == "\n "
659
- @line.concat l
660
- if @code_block_open or @ltype or @continue or @indent > 0
661
- next
662
- end
663
- end
664
- if @line != "\n "
665
- @line.force_encoding(@io.encoding)
666
- yield @line, @exp_line_no
667
- end
668
- break if @io.eof?
669
- @line = ''
670
- @exp_line_no = @line_no
671
- #
672
- @indent = 0
673
- rescue TerminateLineInput
674
- initialize_input
675
- prompt
676
- end
677
- end
678
- end
679
- end
680
- EOC
681
- sleep 1
682
633
write ( "\C -p" * 6 )
683
634
assert_screen ( <<~EOC )
684
635
prompt> rescue Terminate
@@ -687,49 +638,9 @@ def each_top_level_statement
687
638
ut
688
639
prompt> prompt
689
640
EOC
690
- close
691
- end
692
-
693
- def test_longer_than_screen_height_with_complex_scroll_back
694
- start_terminal ( 4 , 30 , %W{ ruby -I#{ @pwd } /lib #{ @pwd } /test/reline/yamatanooroti/multiline_repl} , startup_message : 'Multiline REPL.' )
695
- write ( <<~EOC . chomp )
696
- def each_top_level_statement
697
- initialize_input
698
- catch(:TERM_INPUT) do
699
- loop do
700
- begin
701
- prompt
702
- unless l = lex
703
- throw :TERM_INPUT if @line == ''
704
- else
705
- @line_no += l.count("\n ")
706
- next if l == "\n "
707
- @line.concat l
708
- if @code_block_open or @ltype or @continue or @indent > 0
709
- next
710
- end
711
- end
712
- if @line != "\n "
713
- @line.force_encoding(@io.encoding)
714
- yield @line, @exp_line_no
715
- end
716
- break if @io.eof?
717
- @line = ''
718
- @exp_line_no = @line_no
719
- #
720
- @indent = 0
721
- rescue TerminateLineInput
722
- initialize_input
723
- prompt
724
- end
725
- end
726
- end
727
- end
728
- EOC
729
- sleep 1
730
- write ( "\C -p" * 5 )
731
- write ( "\C -n" * 3 )
641
+ write ( "\C -n" * 4 )
732
642
assert_screen ( <<~EOC )
643
+ prompt> initialize_inp
733
644
ut
734
645
prompt> prompt
735
646
prompt> end
@@ -1459,12 +1370,7 @@ def test_autocomplete_long_with_scrollbar
1459
1370
Socket
1460
1371
StringIO
1461
1372
EOC
1462
- close
1463
- end
1464
-
1465
- def test_autocomplete_long_with_scrollbar_scroll
1466
- start_terminal ( 20 , 30 , %W{ ruby -I#{ @pwd } /lib #{ @pwd } /test/reline/yamatanooroti/multiline_repl --autocomplete-long } , startup_message : 'Multiline REPL.' )
1467
- write ( 'S' + "\C -i" * 16 )
1373
+ write ( "\C -i" * 16 )
1468
1374
assert_screen ( <<~'EOC' )
1469
1375
Multiline REPL.
1470
1376
prompt> StringScanner
0 commit comments