about summary refs log tree commit diff
path: root/tests/rustdoc-gui
diff options
context:
space:
mode:
authorAlexis (Poliorcetics) Bourget <ab_github@poliorcetiq.eu>2023-06-20 08:28:56 +0200
committerAlexis (Poliorcetics) Bourget <ab_github@poliorcetiq.eu>2023-06-20 08:28:56 +0200
commitc3cdf8542d8af35d45dedfa2d9eaccd968e69db7 (patch)
tree76e10b01f91c259097268a4de4d10d6de8335503 /tests/rustdoc-gui
parent1a94b060894017055a3986fdb5603ffbbe8b9c89 (diff)
downloadrust-c3cdf8542d8af35d45dedfa2d9eaccd968e69db7.tar.gz
rust-c3cdf8542d8af35d45dedfa2d9eaccd968e69db7.zip
tests: add test for color of item kind
Diffstat (limited to 'tests/rustdoc-gui')
-rw-r--r--tests/rustdoc-gui/search-result-color.goml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/search-result-color.goml b/tests/rustdoc-gui/search-result-color.goml
index c75e4141434..193a3eb3fd1 100644
--- a/tests/rustdoc-gui/search-result-color.goml
+++ b/tests/rustdoc-gui/search-result-color.goml
@@ -28,6 +28,12 @@ define-function: (
             ".result-" + |result_kind| + ":focus ." + |result_kind|,
             {"color": |hover_color|},
         )
+        // color of the typename (struct, module, method, ...) before search results
+        assert-css: (
+            ".result-name .typename",
+            {"color": "#888"},
+            ALL,
+        )
     },
 )