1 // The goal of this test is to check the color of the "no result" links.
2 goto: "file://" + |DOC_PATH| + "/lib2/index.html?search=sdkfskjfsdks"
7 (theme, link, link_hover),
10 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
12 ("wait-for", "#results"),
13 ("assert", ".search-failed.active"),
14 ("assert-css", ("#results a", {"color": |link|}, ALL)),
15 ("move-cursor-to", "#results a"),
16 ("assert-css", ("#results a:hover", {"color": |link_hover|})),
17 // Moving the cursor to some other place to not create issues with next function run.
18 ("move-cursor-to", ".search-input"),
22 call-function: ("check-no-result", {
24 "link": "rgb(57, 175, 215)",
25 "link_hover": "rgb(57, 175, 215)",
27 call-function: ("check-no-result", {
29 "link": "rgb(210, 153, 29)",
30 "link_hover": "rgb(210, 153, 29)",
32 call-function: ("check-no-result", {
34 "link": "rgb(56, 115, 173)",
35 "link_hover": "rgb(56, 115, 173)",