1 // Check position and color of the `<sup>` for unsafe elements.
2 goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
3 // If the text isn't displayed, the browser doesn't compute color style correctly...
6 compare-elements-property: (
7 "//a[@title='test_docs::safe_fn fn']/..",
8 "//a[@title='test_docs::unsafe_fn fn']/..",
14 // `theme` is the theme being tested.
15 // `color` is the expected color of the `<sup>` element.
19 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
20 // We reload the page so the local storage settings are being used.
22 ("assert-css", (".item-left sup", {"color": |color|})),
26 call-function: ("sup-check", ("dark", "rgb(221, 221, 221)"))
27 call-function: ("sup-check", ("ayu", "rgb(197, 197, 197)"))
28 call-function: ("sup-check", ("light", "rgb(0, 0, 0)"))