diff options
author | pocari <caffelattenonsugar@gmail.com> | 2022-06-27 22:28:34 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-06-27 22:28:49 +0900 |
commit | 8c6c3e30f3a86ba0b697a0d99efe8ff4585c4a42 (patch) | |
tree | 2073fde89b3c57858cb5909b2e036bebd18ca5ea /test | |
parent | b6b9a6190def53aa53ac816a51034fa1c96ed70b (diff) | |
download | ruby-8c6c3e30f3a86ba0b697a0d99efe8ff4585c4a42.tar.gz |
[ruby/reline] Enable to change the background color of dialogs. (https://github.com/ruby/reline/pull/413)
https://github.com/ruby/reline/commit/bd49537964
Diffstat (limited to 'test')
-rw-r--r-- | test/reline/test_config.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/reline/test_config.rb b/test/reline/test_config.rb index 99d190d246..234eee11f7 100644 --- a/test/reline/test_config.rb +++ b/test/reline/test_config.rb @@ -408,4 +408,19 @@ class Reline::Config::Test < Reline::TestCase ENV['XDG_CONFIG_HOME'] = xdg_config_home_backup ENV['HOME'] = home_backup end + + def test_dialog_configurations + @config.read_lines(<<~LINES.lines) + set dialog-default-bg-color 1 + set dialog-pointer-bg-color 2 + set dialog-default-fg-color 3 + set dialog-pointer-fg-color 4 + LINES + + assert_equal 1, @config.dialog_default_bg_color + assert_equal 2, @config.dialog_pointer_bg_color + assert_equal 3, @config.dialog_default_fg_color + assert_equal 4, @config.dialog_pointer_fg_color + end end + |