File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,23 @@ def test_completion_append_character
46
46
Reline . completion_append_character = completion_append_character
47
47
end
48
48
49
+ def test_dialog_color_configuration
50
+ # defaults
51
+ assert_equal ( 46 , Reline . dialog_default_bg_color )
52
+ assert_equal ( 37 , Reline . dialog_default_fg_color )
53
+ assert_equal ( 45 , Reline . dialog_pointer_bg_color )
54
+ assert_equal ( 37 , Reline . dialog_pointer_fg_color )
55
+
56
+ Reline . dialog_default_bg_color = 40
57
+ assert_equal ( 40 , Reline . dialog_default_bg_color )
58
+ Reline . dialog_default_fg_color = 47
59
+ assert_equal ( 47 , Reline . dialog_default_fg_color )
60
+ Reline . dialog_pointer_bg_color = 37
61
+ assert_equal ( 37 , Reline . dialog_pointer_bg_color )
62
+ Reline . dialog_pointer_fg_color = 30
63
+ assert_equal ( 30 , Reline . dialog_pointer_fg_color )
64
+ end
65
+
49
66
def test_basic_word_break_characters
50
67
basic_word_break_characters = Reline . basic_word_break_characters
51
68
You can’t perform that action at this time.
0 commit comments