From 11841f688bd12e56c11dc2ae71911a1e25213951 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 25 Oct 2020 19:29:37 +0900 Subject: Add support for text styling using --color Close #1663 --- src/options_test.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/options_test.go') diff --git a/src/options_test.go b/src/options_test.go index 78207275..a8fc75bd 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -295,7 +295,7 @@ func TestColorSpec(t *testing.T) { } customized := parseTheme(theme, "fg:231,bg:232") - if customized.Fg != 231 || customized.Bg != 232 { + if customized.Fg.Color != 231 || customized.Bg.Color != 232 { t.Errorf("color not customized") } if *tui.Dark256 == *customized { @@ -313,18 +313,6 @@ func TestColorSpec(t *testing.T) { } } -func TestParseNilTheme(t *testing.T) { - var theme *tui.ColorTheme - newTheme := parseTheme(theme, "prompt:12") - if newTheme != nil { - t.Errorf("color is disabled. keep it that way.") - } - newTheme = parseTheme(theme, "prompt:12,dark,prompt:13") - if newTheme.Prompt != 13 { - t.Errorf("color should now be enabled and customized") - } -} - func TestDefaultCtrlNP(t *testing.T) { check := func(words []string, key int, expected actionType) { opts := defaultOptions() -- cgit v1.2.3