summaryrefslogtreecommitdiff
path: root/test/reline/test_reline.rb
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2022-12-04 11:16:27 +0000
committergit <svn-admin@ruby-lang.org>2022-12-05 03:14:55 +0000
commit16b2e0301411531a6ced6c673a1f9bd41d7b7e3e (patch)
treed0bd8bf5d34d26c6b2cd7fd44d5ac1532e0a01cd /test/reline/test_reline.rb
parent06cc30b1898d7536f7024b9d4c7f22ec6a967c15 (diff)
downloadruby-16b2e0301411531a6ced6c673a1f9bd41d7b7e3e.tar.gz
[ruby/reline] Remove unapproved color setting APIs
These APIs/configs are not approved by the Ruby core, so they can't be released to the public. This means having them in the codebase will block other fixes/features from being released as well. So this commit removes those exposed interfaces to unblock the release. Hopefully when https://bugs.ruby-lang.org/issues/18996 is approved we can re-implement better APIs. https://github.com/ruby/reline/commit/f7a961c550
Diffstat (limited to 'test/reline/test_reline.rb')
-rw-r--r--test/reline/test_reline.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/reline/test_reline.rb b/test/reline/test_reline.rb
index 82447fd16c..e58accb3a7 100644
--- a/test/reline/test_reline.rb
+++ b/test/reline/test_reline.rb
@@ -46,35 +46,6 @@ class Reline::Test < Reline::TestCase
Reline.completion_append_character = completion_append_character
end
- def test_dialog_color_configuration
- # defaults
- assert_equal(:cyan, Reline.dialog_default_bg_color)
- assert_equal(:white, Reline.dialog_default_fg_color)
- assert_equal(:magenta, Reline.dialog_highlight_bg_color)
- assert_equal(:white, Reline.dialog_highlight_fg_color)
-
- Reline.dialog_default_bg_color = :black
- assert_equal(:black, Reline.dialog_default_bg_color)
- assert_equal(40, Reline.dialog_default_bg_color_sequence)
-
- Reline.dialog_default_fg_color = :white
- assert_equal(:white, Reline.dialog_default_fg_color)
- assert_equal(37, Reline.dialog_default_fg_color_sequence)
-
- Reline.dialog_highlight_bg_color = :white
- assert_equal(:white, Reline.dialog_highlight_bg_color)
- assert_equal(47, Reline.dialog_highlight_bg_color_sequence)
-
- Reline.dialog_highlight_fg_color = :black
- assert_equal(:black, Reline.dialog_highlight_fg_color)
- assert_equal(30, Reline.dialog_highlight_fg_color_sequence)
-
- # test value validation
- assert_raise(ArgumentError) do
- Reline.dialog_highlight_fg_color = :foo
- end
- end
-
def test_basic_word_break_characters
basic_word_break_characters = Reline.basic_word_break_characters