summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/notable-trait.goml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/rustdoc-gui/notable-trait.goml43
1 files changed, 29 insertions, 14 deletions
diff --git a/tests/rustdoc-gui/notable-trait.goml b/tests/rustdoc-gui/notable-trait.goml
index ecb57c274..e10bb538f 100644
--- a/tests/rustdoc-gui/notable-trait.goml
+++ b/tests/rustdoc-gui/notable-trait.goml
@@ -122,7 +122,7 @@ assert-count: ("//*[@class='tooltip popover']", 0)
// Now check the colors.
define-function: (
"check-colors",
- (theme, header_color, content_color, type_color, trait_color),
+ (theme, header_color, content_color, type_color, trait_color, link_color),
block {
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.NotableStructWithLongName.html"
// This is needed to ensure that the text color is computed.
@@ -133,8 +133,20 @@ define-function: (
// We reload the page so the local storage settings are being used.
reload:
+ assert-css: (
+ "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']",
+ {"color": |content_color|},
+ ALL,
+ )
+
move-cursor-to: "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']"
- assert-count: (".tooltip.popover", 1)
+ wait-for-count: (".tooltip.popover", 1)
+
+ assert-css: (
+ "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']",
+ {"color": |link_color|},
+ ALL,
+ )
assert-css: (
".tooltip.popover h3",
@@ -163,10 +175,11 @@ call-function: (
"check-colors",
{
"theme": "ayu",
- "content_color": "rgb(230, 225, 207)",
- "header_color": "rgb(255, 255, 255)",
- "type_color": "rgb(255, 160, 165)",
- "trait_color": "rgb(57, 175, 215)",
+ "link_color": "#39afd7",
+ "content_color": "#e6e1cf",
+ "header_color": "#fff",
+ "type_color": "#ffa0a5",
+ "trait_color": "#39afd7",
},
)
@@ -174,10 +187,11 @@ call-function: (
"check-colors",
{
"theme": "dark",
- "content_color": "rgb(221, 221, 221)",
- "header_color": "rgb(221, 221, 221)",
- "type_color": "rgb(45, 191, 184)",
- "trait_color": "rgb(183, 140, 242)",
+ "link_color": "#d2991d",
+ "content_color": "#ddd",
+ "header_color": "#ddd",
+ "type_color": "#2dbfb8",
+ "trait_color": "#b78cf2",
},
)
@@ -185,10 +199,11 @@ call-function: (
"check-colors",
{
"theme": "light",
- "content_color": "rgb(0, 0, 0)",
- "header_color": "rgb(0, 0, 0)",
- "type_color": "rgb(173, 55, 138)",
- "trait_color": "rgb(110, 79, 201)",
+ "link_color": "#3873ad",
+ "content_color": "black",
+ "header_color": "black",
+ "type_color": "#ad378a",
+ "trait_color": "#6e4fc9",
},
)