|
| 1 | +// This test is to ensure that the anchors (`§`) have the expected color. |
1 | 2 | goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html |
2 | 3 |
|
| 4 | +// This is needed to ensure that the text color is computed. |
| 5 | +show-text: true |
| 6 | + |
3 | 7 | // Set the theme to light. |
4 | 8 | local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"} |
5 | 9 | // We reload the page so the local storage settings are being used. |
6 | 10 | reload: |
7 | 11 |
|
8 | | -assert-css: ("#toggle-all-docs", {"color": "rgba(0, 0, 0, 0)"}) |
9 | | -assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgba(0, 0, 0, 0)"}) |
10 | | -assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgba(0, 0, 0, 0)"}) |
11 | | -assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"}) |
12 | | -assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"}) |
| 12 | +assert-css: ("#toggle-all-docs", {"color": "rgb(0, 0, 0)"}) |
| 13 | +assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgb(0, 0, 0)"}) |
| 14 | +assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgb(173, 68, 142)"}) |
| 15 | +assert-css: (".srclink", {"color": "rgb(0, 0, 0)"}) |
| 16 | +assert-css: (".srclink", {"color": "rgb(0, 0, 0)"}) |
| 17 | + |
| 18 | +assert-css: ("#top-doc-prose-title", {"color": "rgb(0, 0, 0)"}) |
| 19 | + |
| 20 | +assert-css: (".sidebar a", {"color": "rgb(0, 0, 0)"}) |
| 21 | +assert-css: (".in-band a", {"color": "rgb(0, 0, 0)"}) |
13 | 22 |
|
14 | | -assert-css: ("#top-doc-prose-title", {"color": "rgba(0, 0, 0, 0)"}) |
| 23 | +// We move the cursor over the "Implementations" title so the anchor is displayed. |
| 24 | +move-cursor-to: "h2#implementations" |
| 25 | +assert-css: ("h2#implementations a.anchor", {"color": "rgb(0, 0, 0)"}) |
15 | 26 |
|
16 | | -assert-css: (".sidebar a", {"color": "rgba(0, 0, 0, 0)"}) |
17 | | -assert-css: (".in-band a", {"color": "rgba(0, 0, 0, 0)"}) |
| 27 | +// Same thing with the impl block title. |
| 28 | +move-cursor-to: "#impl" |
| 29 | +assert-css: ("#impl a.anchor", {"color": "rgb(0, 0, 0)"}) |
0 commit comments