@@ -5,6 +5,7 @@ define-function: (
55 (result_kind, color, hover_color),
66 block {
77 assert-css: (".result-" + |result_kind| + " ." + |result_kind|, {"color": |color|}, ALL)
8+ assert-css: (".result-" + |result_kind| + " i", {"color": |default_color|})
89 assert-css: (
910 ".result-" + |result_kind|,
1011 {"color": |entry_color|, "background-color": |background_color|},
@@ -18,6 +19,7 @@ define-function: (
1819 ".result-" + |result_kind| + ":hover ." + |result_kind|,
1920 {"color": |hover_color|},
2021 )
22+ assert-css: (".result-" + |result_kind| + ":hover i", {"color": |default_color|})
2123 move-cursor-to: ".search-input"
2224 focus: ".result-" + |result_kind|
2325 assert-css: (
@@ -65,10 +67,12 @@ assert-css: (
6567 {"border-bottom-color": "#aaa3"}
6668)
6769
70+ store-value: (default_color, "rgb(197, 197, 197)")
71+
6872// Checking the color of "keyword" text.
6973assert-css: (
7074 "//*[@class='result-name']//*[text()='(keyword)']",
71- {"color": "#788797" },
75+ {"color": |default_color| },
7276)
7377
7478store-value: (entry_color, "#0096cf") // color of the search entry
@@ -182,10 +186,12 @@ assert-css: (
182186 {"border-bottom-color": "#aaa3"}
183187)
184188
189+ store-value: (default_color, "rgb(221, 221, 221)")
190+
185191// Checking the color for "keyword" text.
186192assert-css: (
187193 "//*[@class='result-name']//*[text()='(keyword)']",
188- {"color": "#ddd" },
194+ {"color": |default_color| },
189195)
190196
191197store-value: (entry_color, "#ddd") // color of the search entry
@@ -284,10 +290,12 @@ assert-css: (
284290 {"border-bottom-color": "#aaa3"}
285291)
286292
293+ store-value: (default_color, "rgb(0, 0, 0)")
294+
287295// Checking the color for "keyword" text.
288296assert-css: (
289297 "//*[@class='result-name']//*[text()='(keyword)']",
290- {"color": "#000" },
298+ {"color": |default_color| },
291299)
292300
293301store-value: (entry_color, "#000") // color of the search entry
0 commit comments