11// This test is to ensure that the anchors (`§`) have the expected color and position.
2- goto: file://|DOC_PATH|/test_docs /struct.HeavilyDocumentedStruct .html
2+ goto: file://|DOC_PATH|/staged_api /struct.Foo .html
33show-text: true
44
55// This is needed to ensure that the text color is computed.
@@ -13,10 +13,31 @@ reload:
1313assert-css: ("#toggle-all-docs", {"color": "rgb(0, 0, 0)"})
1414assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgb(0, 0, 0)"})
1515assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgb(173, 55, 138)"})
16- assert-css: (".srclink", {"color": "rgb(56, 115, 173)"})
16+ assert-css: (
17+ ".rightside .srclink",
18+ {"color": "rgb(56, 115, 173)", "text-decoration": "none solid rgb(56, 115, 173)"},
19+ ALL,
20+ )
21+ compare-elements-css: (".rightside .srclink", ".rightside.srclink", ["color", "text-decoration"])
22+ compare-elements-css: (".main-heading .srclink", ".rightside.srclink", ["color", "text-decoration"])
1723
1824move-cursor-to: ".main-heading .srclink"
19- assert-css: (".srclink", {"text-decoration": "underline solid rgb(56, 115, 173)"})
25+ assert-css: (
26+ ".main-heading .srclink",
27+ {"color": "rgb(56, 115, 173)", "text-decoration": "underline solid rgb(56, 115, 173)"},
28+ )
29+ move-cursor-to: ".impl-items .rightside .srclink"
30+ assert-css: (
31+ ".impl-items .rightside .srclink",
32+ {"color": "rgb(56, 115, 173)", "text-decoration": "none solid rgb(56, 115, 173)"},
33+ )
34+ move-cursor-to: ".impl-items .rightside.srclink"
35+ assert-css: (
36+ ".impl-items .rightside.srclink",
37+ {"color": "rgb(56, 115, 173)", "text-decoration": "none solid rgb(56, 115, 173)"},
38+ )
39+
40+ goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
2041
2142assert-css: ("#top-doc-prose-title", {"color": "rgb(0, 0, 0)"})
2243
0 commit comments