@@ -122,7 +122,7 @@ assert-count: ("//*[@class='tooltip popover']", 0)
122
122
// Now check the colors.
123
123
define-function: (
124
124
"check-colors",
125
- (theme, header_color, content_color, type_color, trait_color),
125
+ (theme, header_color, content_color, type_color, trait_color, link_color ),
126
126
block {
127
127
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.NotableStructWithLongName.html"
128
128
// This is needed to ensure that the text color is computed.
@@ -133,9 +133,21 @@ define-function: (
133
133
// We reload the page so the local storage settings are being used.
134
134
reload:
135
135
136
+ assert-css: (
137
+ "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']",
138
+ {"color": |content_color|},
139
+ ALL,
140
+ )
141
+
136
142
move-cursor-to: "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']"
137
143
wait-for-count: (".tooltip.popover", 1)
138
144
145
+ assert-css: (
146
+ "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']",
147
+ {"color": |link_color|},
148
+ ALL,
149
+ )
150
+
139
151
assert-css: (
140
152
".tooltip.popover h3",
141
153
{"color": |header_color|},
@@ -163,6 +175,7 @@ call-function: (
163
175
"check-colors",
164
176
{
165
177
"theme": "ayu",
178
+ "link_color": "rgb(57, 175, 215)",
166
179
"content_color": "rgb(230, 225, 207)",
167
180
"header_color": "rgb(255, 255, 255)",
168
181
"type_color": "rgb(255, 160, 165)",
@@ -174,6 +187,7 @@ call-function: (
174
187
"check-colors",
175
188
{
176
189
"theme": "dark",
190
+ "link_color": "rgb(210, 153, 29)",
177
191
"content_color": "rgb(221, 221, 221)",
178
192
"header_color": "rgb(221, 221, 221)",
179
193
"type_color": "rgb(45, 191, 184)",
@@ -185,6 +199,7 @@ call-function: (
185
199
"check-colors",
186
200
{
187
201
"theme": "light",
202
+ "link_color": "rgb(56, 115, 173)",
188
203
"content_color": "rgb(0, 0, 0)",
189
204
"header_color": "rgb(0, 0, 0)",
190
205
"type_color": "rgb(173, 55, 138)",
0 commit comments