fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
803 B22 linesraw
1// We check the background color on the jump to definition links in the src code page.
2go-to: "file://" + |DOC_PATH| + "/src/link_to_definition/lib.rs.html"
3
4define-function: (
5    "check-background-color",
6    (theme, background_color),
7    block {
8        // Set the theme.
9        set-local-storage: { "rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false" }
10        // We reload the page so the local storage settings are being used.
11        reload:
12        assert-css: (
13            "body.src .example-wrap pre.rust a",
14            {"background-color": |background_color|},
15            ALL,
16        )
17    },
18)
19
20call-function: ("check-background-color", ("ayu", "#333"))
21call-function: ("check-background-color", ("dark", "#333"))
22call-function: ("check-background-color", ("light", "#eee"))